- This topic has 1 reply, 2 voices, and was last updated 4 years, 5 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Programming with SOFA › Implement a velocity constraint
Tagged: 64_bits, constraint, Linux_ubuntu, projection, SOFA_2006
Hi,
I am trying to implement an AngularVelocityConstraint. I am looking at the LinearVelocityConstraint for inspiration and I see that if the constraint is still active (if(finished)...
), it applies some corrections to the positions, but if not, it doesn’t. Is this the correct behavior? Do I need to apply the constraint to both the velocity and the position or only to the velocity?
Hi @jjcasmar
I never used myself the LinearVelocityConstraint.
This “finished” internal C++ variable is just used to detect when constraint velocity ends. If you need to have key times as well this can be a way to deal with the period after the constraint. There is no real correct or incorrect behavior.
In your AngularVelocity, to my understanding, you should only need to implement the constraint on velocity.
Best
Hugo
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.