How can I make a pong ball move and collide with the paddles and walls without using rigibodies, physics materials or colliders?
Hi, I am trying to make a simple Ping Pong clone game in Unity for a class project, but I am having trouble doing it, I've already made the game objects and program the movement and boundaries of the paddles. but I need to make the ball collide and bounce from the paddles and walls using the physic formulas. Also, detect when the ball goes through the sides without walls to give a point to the corresponding player. I can't use "Rigidbody" or "PhysicMaterial" or "Collider" to implement these features.
Can someone help me understand HOW I can make the ball move without any of these features.
Answer by SteenPetersen · May 10, 2017 at 09:53 PM
well one way would be to determine mathematically the size of the paddle and where its transform is.
if the ball is at the same location as the paddle at the same time, inverse its direction.
Well, I would understand better if it was in code, specifically C#, please.