Simple rotating wheel

Official forum for the Chipmunk2D Physics Library.
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Simple rotating wheel

Post by slembcke »

You probably don't mean to prevent it from updating the position. That tends to be a very bad thing.

You should try using force limits instead. Otherwise the force used to correct the two joints will fight and both will grow in an unbounded fashion each iteration of the solver. That's why I used force limits in the demo code. The mouse grabbing should have a soft force limited feel to it to simulate the way that you would really be able to manipulate things in real life.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests