Skip to content

Point constraint limitation #268

Answered by jrouwe
tksuoran asked this question in Q&A
Oct 11, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

A point constraint has no spring element in it, all it does it to try to keep the points together. If all you do is to set the world attachment point every frame, then the velocity of that point will be zero (because you've attached it to the fixed world). Constraints are solved in the velocity domain (by SolveVelocityConstraint) and by setting a new position you haven't violated the relative velocity between the bodies. The position of the body is incorrect though, but this will be fixed up by SolvePositionConstraint which will just fix up the positions and not actually introduce any velocity on the body. This works differently in Bullet, where the position error is solved together with …

Replies: 1 comment 2 replies

Comment options

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

@tksuoran
Comment options

Answer selected by tksuoran
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