Distance Constraint
Intro
Constrain Shapes to their original positions in a Forge Dynamics simulation.
UI
Spring Position - With nothing connected, the Constraint's position is the starting position of the Body. If a transform (e.g. Null) is connected then the position of that transform will be used for all Bodies.
Horizontal Alignment - Align the position of the Constraint to the left (-1) or right (1) edge of the Body.
Vertical Alignment - Align the position of the Constraint to the top (1) or bottom (-1) edge of the Body.
Rest Length - The length that the spring tries to resolve to.
Minimum Length - Set a minimum length a spring can compress to.
Maximum Length - Set a maximum length a spring can stretch to.
Frequency (Hz) - A higher value will give the spring more bounce.
Damping Ratio - A higher value will bring the spring to a rest more quickly.
Breakable - When enabled, the Constraint can be broken by other forces.
Breaking Mode - Set a condition for the Constraint to break under:
- Force - The Constraint will break when a force is above the Breaking Force.
- Distance - The Constraint will break when it moves beyond its Stretch Limit.
- Time - The Constraint will break when a force above the Breaking Force is sustained for a number of consecutive frames above the Breaking Duration.
Breaking Force - Set the amount of force required to break the Constraint.
Stretch Limit - Set a multiple of the Rest Length a Constraint is moved by before it breaks. For example, if the Rest Length is 100 and the Stretch Limit is 2, the Constraint will break when stretched to .
Breaking Duration - Set the number of consecutive frames a Constraint must be under a force above the Breaking Force before breaking.
Stress Threshold - Set a threshold as a percentage of the Breaking Force within which a Constraint will break.