Struct SphericalJoint
- Namespace
- Box3D
- Assembly
- Box3D.NET.dll
A ball-in-socket joint.
public readonly record struct SphericalJoint : IEquatable<SphericalJoint>Implements
Inherited Members
Properties
- AsJoint
-
Gets the generic handle, carrying what every joint has in common.
- ConeAngle
-
Gets the current swing away from the cone axis, in radians.
- ConeLimit
-
Gets or sets the cone half angle in radians.
- ConeLimitEnabled
-
Gets or sets a value indicating whether the cone limit is enforced.
- DampingRatio
-
Gets or sets the spring damping ratio.
- Hertz
-
Gets or sets the spring stiffness in cycles per second.
- LowerTwistLimit
-
Gets the lower twist limit in radians.
- MaxMotorTorque
-
Gets or sets the maximum torque the motor may apply, in newton-metres.
- MotorEnabled
-
Gets or sets a value indicating whether the motor is enabled.
- MotorTorque
-
Gets the torque the motor is currently applying, in newton-metres.
- MotorVelocity
-
Gets or sets the angular velocity the motor drives towards, in radians per second.
- SpringEnabled
-
Gets or sets a value indicating whether the alignment spring is enabled.
- TargetRotation
-
Gets or sets the rotation the spring drives towards.
- TwistAngle
-
Gets the current twist about the cone axis, in radians.
- TwistLimitEnabled
-
Gets or sets a value indicating whether the twist limit is enforced.
- UpperTwistLimit
-
Gets the upper twist limit in radians.
Methods
- Destroy(bool)
-
Destroys this joint.
- SetTwistLimits(float, float)
-
Sets both twist limits.