Skip to content

Trouble with IK joint limitations #50

Closed Answered by RossNordby
DJSures asked this question in Q&A
Discussion options

You must be logged in to vote

IKDistanceJoint tries to maintain the initial distance between points attached to each body. In the code provided, the attachment points are both specified to be at the same point, which means the distance constraint is targeting 0 distance. This won't work well; the constraint needs a valid axis to work on and targeting 0 distance pushes the constraint towards an unstable singularity. Use the IKBallSocketJoint instead.

Also, the joints in the snippet are configured with anchors at entity positions. Entity positions are at the center of the entity, not on the surface. You'll want to offset the anchor like in the BuildRoboArmThing sample from the InverseKinematicsTestDemo.

When trying to c…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@DJSures
Comment options

@RossNordby
Comment options

Answer selected by DJSures
Comment options

You must be logged in to vote
4 replies
@RossNordby
Comment options

@DJSures
Comment options

@DJSures
Comment options

@DJSures
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants