I have a bouncing ball in my game. Every time I start the game, the ball direction (a Vector3) and speed are constant. The ball has a rigidbody too. I'm using OnTriggerEnter
to detect collisions.
After starting the game the ball will move to a wall. The question is, why is the collision point different every time?
i used FixedUpdate()
insted of FixUpdate()
and problem solved.