Hi guys,
I created a tennis racket and wish to bounce a ball (vertically).
The user can rotate the racket (up/down) and the racket in order to bounce the ball.
The problem is, the ball is not bouncing - or more to the point, the rotation of the racket does not produce velocity.
What am I missing ?
Thanks,
Guy N.
Hey there,
I assume your tennis racket is a rigidbody. When you’re directly manipulating the position and rotation properties of a rigidbody through scripting, you need to use the MovePosition and MoveRotation functions of the Rigidbody class for correct collision response to happen. I’ve had this problem a while ago as well. Also, since you’re manipulating position and rotation, you need to make that rigidbody Kinematic (there’s a checkbox for it in the Rigidbody section of the Inspector)
Good luck.
Thanks,
MoveRotation solved the problem, couldn’t figure out what I was doing wrong.