I have successfully modeled my object using Chipmunk Physics. Now, I want my cpPivotJoints to break if the force acting on them gets above a certain amount. I'm not sure what the member variables of the cpPivotJoint mean? Is one of them the force?
Thanks
How to find force active on cpPivotJoint?
-
- Posts: 2
- Joined: Tue Jun 30, 2009 6:25 pm
- Contact:
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: How to find force active on cpPivotJoint?
The trunk code has a getter for the current force applied to the joint. If you don't want to move to the trunk version, you can at least see how it does it here: http://code.google.com/p/chipmunk-physi ... votJoint.c
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: 2
- Joined: Tue Jun 30, 2009 6:25 pm
- Contact:
Re: How to find force active on cpPivotJoint?
Cool, thanks.
Who is online
Users browsing this forum: No registered users and 17 guests