Calculating the rotational force of a 2D sprite

Posted by Jon on Game Development See other posts from Game Development or by Jon
Published on 2011-11-10T20:06:21Z Indexed on 2011/11/11 18:29 UTC
Read the original article Hit count: 223

Filed under:
|
|
|

I am wondering if someone has an elegant way of calculating the following scenario.

I have an object of (n) number of squares, random shapes, but we will pretend they are all rectangles.

We are dealing with no gravity, so consider the object in space, from a top down perspective. I am applying a force to the object at a specific square (as illustrated below).

Applying a force

How do I calculate the rotational angle, based on the force being applied, at the location being applied. If applied in the center square, it would go straight. How should it behave the further I move from the center? How do I calculate the rotational velocity?

© Game Development or respective owner

Related posts about XNA

Related posts about 2d