Original Post
Hi,
I am trying to understand rigid body mechanincs in order to implement it in my game.
I want to find out what are the properties that needs to be defined for a Rigid body so that
it can show proper collision mechanism.
eg: If I have a couple of rectangular boxes placed in a position and then I pass on a moving
ball towards it, when the ball collides with these boxes, the boxes should fall or displace
depending on the force. Similar to the kind of effect seen in a Bowling game.
I want to know how this collision can be implemented. I have declared a class with Rigidbody
properties containing
class RigidBody
{
double Mass;
vector3 Position;
Vector3 CalculateLinearVel();
Vector3 CalculateAngularVel();
vector normals;
}
What calculation should I have to do in order to have a proper result.
All suggestions are welcome...
I am trying to understand rigid body mechanincs in order to implement it in my game.
I want to find out what are the properties that needs to be defined for a Rigid body so that
it can show proper collision mechanism.
eg: If I have a couple of rectangular boxes placed in a position and then I pass on a moving
ball towards it, when the ball collides with these boxes, the boxes should fall or displace
depending on the force. Similar to the kind of effect seen in a Bowling game.
I want to know how this collision can be implemented. I have declared a class with Rigidbody
properties containing
class RigidBody
{
double Mass;
vector3 Position;
Vector3 CalculateLinearVel();
Vector3 CalculateAngularVel();
vector
}
What calculation should I have to do in order to have a proper result.
All suggestions are welcome...