DistanceConstraint
Using the Solver plugin.
This example shows the behaviour of the cubos::
The cubos::
The sample includes four scenarios: A simple Circle scenario where one entity is fixed and another has an initial velocity but is constrained to first one, resulting in an "orbiting" motion. A pendulum scenerio with the same setup as the first but the second entity has a simulated gravity instead of a constant velocity. A double pendulum scenario which adds another entity constrained to the original pendulum. And a PushPull scenario where one constrained entity is pushed by a "free" entity until it hits minimum distance with the fixed entity, being repelled outwards and pushing the "free" entity back.
To switch between these scenarios press the space-bar.