Jump to content
  • Advertisement
Sign in to follow this  
f@bo

Rigid body rototion with 4 force

This topic is 4983 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello! I'm try a car simulator game. I have a problem: I have a rectangle, at 4 corners influence 4 force. How can I rotate the rectangle whith this forces?

Share this post


Link to post
Share on other sites
Advertisement
Suppose you dont have any appearent point of rotation, then the body will rotation about it's center of mass. Do a torque at the CM for all forces, sum it up. Note that

Torque = I * Alpha;

Where I is the moment of inertia of the block and
Alpha is the angular acceleration.

Once you have the angular acceleration, you can calculate the angle by integrating the expression twice.

To actually carry out the rotation and display it on the screen, you will need to run the mesh thru a rotational transformation, the one that is defined by the Rotation Matrix.

Share this post


Link to post
Share on other sites
f@bo,

In general, forces applied to a rigid body cause a torque, which results in a change in angular momentum according to the Euler equation of rotational rigid body motion. Basically, you need to integrate the rotational equation of motion in a manner similar to the integration of the translational equation of motion.

Your question is general, and so I give you a general reference. I suggest you search the forum archives since the topic of car simulation is very common. You will find many useful discussions in the archives. Second, I suggest you read an introduction to rigid body dynamics simulation. You can find one such introduction here:

An Introduction to Physically Based Modeling: Rigid Body Simulation I—Unconstrained Rigid Body Dynamics

I hope this helps!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!