Struct DistanceJoint
- Namespace
- Box3D
- Assembly
- Box3D.NET.dll
Holds two points a set distance apart.
public readonly record struct DistanceJoint : IEquatable<DistanceJoint>Implements
Inherited Members
Properties
- AsJoint
-
Gets the generic handle, carrying what every joint has in common.
- CurrentLength
-
Gets the current distance between the two anchors.
- DampingRatio
-
Gets or sets the spring damping ratio.
- Hertz
-
Gets or sets the spring stiffness in cycles per second.
- Length
-
Gets or sets the rest length.
- LimitsEnabled
-
Gets or sets a value indicating whether the length limits are enforced.
- MaxLength
-
Gets the maximum length.
- MaxMotorForce
-
Gets or sets the maximum force the motor may apply, in newtons.
- MinLength
-
Gets the minimum length.
- MotorEnabled
-
Gets or sets a value indicating whether the motor is enabled.
- MotorForce
-
Gets the force the motor is currently applying, in newtons.
- MotorSpeed
-
Gets or sets the speed the motor drives towards, in metres per second.
- SpringEnabled
-
Gets or sets a value indicating whether the joint behaves as a spring.
Methods
- Destroy(bool)
-
Destroys this joint.
- SetLengthRange(float, float)
-
Sets both length limits.
- SetSpringForceRange(float, float)
-
Sets the force range the spring may apply.