Page 1 of 1

How to find force active on cpPivotJoint?

Posted: Tue Jun 30, 2009 6:29 pm
by FigBug
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

Re: How to find force active on cpPivotJoint?

Posted: Wed Jul 01, 2009 10:04 am
by slembcke
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

Re: How to find force active on cpPivotJoint?

Posted: Thu Jul 02, 2009 1:03 pm
by FigBug
Cool, thanks.