Tendence to counterclockwise torque?

5 views
Skip to first unread message

GusmanB

unread,
Feb 16, 2011, 4:15:09 PM2/16/11
to Physics2D.Net
Hi.

I have made some test and it seems that the engine has a tendence to
always apply torque to objects in CCW sense, is this possible??

For example, I have created a body with a circleshape of only four
vertices, rotated it 90º and dropped over a ground, it always rotates
CCW. This is not my first test but the most obvious, using other
shapes and objects seem to have the same tendence.

If it's easy to do i want to make it a bit more random if it's
possible, any point to the code section where it is decided will be
enough.

Thanks.

JonoPorter

unread,
Feb 16, 2011, 4:39:03 PM2/16/11
to Physics2D.Net
I think this has to do in which order the colliding vertices are being
processed.

The code that processed these are in the SequentialImpulses.cs file.
You could randomly change the direction the contactsArray is processed
and may give you the desired result.

GusmanB

unread,
Feb 17, 2011, 11:50:18 PM2/17/11
to Physics2D.Net
OkiDoki, tomorrow i will look at it.

Thanks a lot.

BTW: the engine is working really well now on MonoTouch, its a
delight :D
Reply all
Reply to author
Forward
0 new messages