This uses just stock chipmunk and works without issue at a time step of 1/30 for 10 iterations. Momentum is MOSTLY conserved, but for my purposes this is ultimately going to lead to complex wall climbing behavior so I'm not too worried about it.
http://www.youtube.com/watch?feature=pl ... _XLKtJvRmA
This uses a system of groove and pin joints, switching just at the right second to carry around corners. The only tricky part was maintaining connection information and determining when to constraint switch from joint A to joint B without stepping on the toes of the logic to switch the other way around.
Chipmunk rail physics
-
- Posts: 37
- Joined: Tue Feb 12, 2013 8:09 pm
- Contact:
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: Chipmunk rail physics
Hey, that's pretty nifty actually. Works pretty well.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
-
- Posts: 37
- Joined: Tue Feb 12, 2013 8:09 pm
- Contact:
Re: Chipmunk rail physics
http://youtu.be/P3760HUsAsw
This is old-ish, but an update to those who are interested. Thats just a poly shape pivot jointed to the staticBody, we drop a clingyBall on it and the rest is history. Much more to go from here, but I think this is a fairly original use for Chipmunk!
This is old-ish, but an update to those who are interested. Thats just a poly shape pivot jointed to the staticBody, we drop a clingyBall on it and the rest is history. Much more to go from here, but I think this is a fairly original use for Chipmunk!
Who is online
Users browsing this forum: No registered users and 1 guest