Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Thu Feb 24, 2011 12:58 am 
Offline

Joined: Mon Sep 20, 2010 1:59 pm
Posts: 5
Hello All,

I have set up my bodies and joints, but for some joints the initial getHingeAngle value ends up being close to pi, then while running the simulation the the getHingeAngle values will jump from being around pi to being around -pi. Does anyone know of an elegant way of calculating more continuous values.

As my joints don not rotate completely I am thinking of storing the initial angle in the HingeConstraint instance and rotating the angles so that the initial angle becomes 0.

I have attached a graph of the hinge angle values,

Thanks for any help in advance
BR,


Attachments:
File comment: Somewhat problematic data
joint1.png
joint1.png [ 4.21 KiB | Viewed 638 times ]
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group