- Home /
Place the object inside the surface when it jerks out of the surface
I am Creating Tennis game.I moved the ball smoothly. When it touches some point it continously increasing Z values but x value will be in the same position for some amount of time. How could i recover this error when the ball moves outside the tennis cort. I need to placed inside. Can anyone reply the code for this?
Comment
For clarity can you explain what the ball is currently doing, and how that differs from what you are wanting the ball to do?