- Home /
Question by
weny · Nov 15, 2012 at 10:09 AM ·
physicsreflectionpool
Law of Reflection and pool ball
Hi, I'm trying to setup physic like in pool game, where the ball is reflected from the rail in the oposite direction.
I have two rails(red cubes) with bounce material from standard assets and ball(gray sphere). Ball has rigidbody and wood physic material.
When I add force (100, 0, 100) to ball.rigidbody, the ball isn't reflected by 45 degrees, and the force of rigidbody is perpendicular to ralis after few relections.
Is there any way to apply "Law of Reflection" to the ball?
Comment
If you want to create your own pool game, I would suggest to write custom physics. Simulated physics just won't do if you want it to be realistic enough. You can use triggers to detect if a ball hits a rail, and then you can "mirror" its speed in a certain direction.