AnchorConstraint

An anchor act as sort of elastic attached to the center of node on a soft body in other word a typical point to point constraint. Depending on the total mass to of the body and influence of the anchor the soft body will be either pulled or dragged toward the anchor's attachment point.

The anchor contains two attach point; the first (pivotA) is always relative to the current object transformation. The second (pivotB) depend if an existing RigidBody is attached to the constraint. If there is one connected the point is relative to the object location; instead the second attach point is relative to the first.

See Also

Static Variables


Name Description
softconstraint The SoftConstraint reference the current anchor belongs to.

Variables


Name Description
pivotA The first anchor attach point.
pivotB The second anchor attach point.
rigidbodyB An existing rigidbody that belongs to the same World.
collision_between_bodies Enable or disable the collision between the two physics bodies.
enabled Enable or disable the constraint.
influence Represent how much the softbody is affected by the pulling effect of the anchor.

Functions


Name Description
GetNodeInfo Retrieve information about the SoftBody node connected to the constraint.




NRG - API 2022.4.384543 - Fri Nov 4 2022
Copyright © 2022 nrgcore.com. All Rights Reserved. Terms of Service - Privacy Policy - EULA