class
IDistanceJointImplementation
Low-level interface for a joint used by the DistanceJoint component.
Should be implemented by the physics plugin to provide joint functionality.
Public
Methods
GetDistance
Returns the current distance between the two joint bodies.
SetMinDistance
Determines the minimum distance the bodies are allowed to be at, they will get no closer.
You must enable min distance flag in order for this limit to be applied.
GetMinDistance
SetMaxDistance
Determines the maximum distance the bodies are allowed to be at, they will get no further.
You must enable max distance flag in order for this limit to be applied.
GetMaxDistance
GetTolerance
SetTolerance
Determines the error tolerance of the joint at which the joint becomes active.
This value slightly extends the lower and upper limit.
GetSpring
SetSpring
Determines a spring that controls how the joint responds when a limit is reached.
You must enable the spring flag on the joint in order for this to be recognized.
SetFlag
Enables or disables a flag that controls joint behaviour.
HasFlag
Checks whether a certain joint flag is enabled.