Hi,
My current project is simple billiard project. I have added the sphere collider and rigidbody to all balls. using this I add force to the cuball it collides with balls and they give the real look but not perfect. any thing that i can do best to give reall physics.
secondly, I have to create elasticity in colliders of borders. I have used box colliders for the borders. balls simply collide with them and then stops. I am using the following code to return it to its normal. but its not working.
function OnCollisionEnter(collision : Collision)
{
if(collision.transform.name == "Border")
{
for (var contact : ContactPoint in collision.contacts)
{
rigidbody.AddRelativeForce(contact.normal);
}
}
}
Any best suggestion or any resource available for this kind of project.
thanks
unitylearner
