Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Thu Feb 23, 2012 11:26 pm 
Offline

Joined: Thu Feb 23, 2012 11:23 pm
Posts: 1
I'm trying to lock the movement of a soft body to the x axis. I want to be able to move left and right but lock it to the same position in the z axis.

Even when I am applying a velocity along the x axis it can sometimes cause the body to move back in the z axis due to air resistance and the way the soft body moves I assume.

To combat this problem I want to use a tick callback to make sure that the soft body's z position is always 0;

Is this the best way to go about it, and if so how do I set the position.

I have tried .transform() and .translate() but have not managed to get it working.

Thanks.


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: DannyChapman and 2 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