How to find force active on cpPivotJoint?

Official forum for the Chipmunk2D Physics Library.
Post Reply
FigBug
Posts: 2
Joined: Tue Jun 30, 2009 6:25 pm
Contact:

How to find force active on cpPivotJoint?

Post 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
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: How to find force active on cpPivotJoint?

Post 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
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
FigBug
Posts: 2
Joined: Tue Jun 30, 2009 6:25 pm
Contact:

Re: How to find force active on cpPivotJoint?

Post by FigBug »

Cool, thanks.
Post Reply

Who is online

Users browsing this forum: Heise IT-Markt [Crawler] and 28 guests