Answers for "bounce script unity"

C#
0

bounce script unity

void OnCollisionEnter(Collision collisionInfo){
  
  rigidbody.AddForce(Vector3.Reflect(direction, collisionInfo.contacts[0].normal) * mag, ForceMode.Impulse);

}
Posted by: Guest on July-06-2020

C# Answers by Framework

Browse Popular Code Answers by Language