Table of Contents

Struct RevoluteJoint

Namespace
Box3D
Assembly
Box3D.NET.dll

A hinge. Body B rotates about one axis relative to body A.

public readonly record struct RevoluteJoint : IEquatable<RevoluteJoint>

Implements

Inherited Members

Properties

Angle

Gets the current angle relative to the target angle, in radians.

AsJoint

Gets the generic handle, carrying what every joint has in common.

DampingRatio

Gets or sets the spring damping ratio.

Hertz

Gets or sets the spring stiffness in cycles per second.

LimitsEnabled

Gets or sets a value indicating whether the angle limits are enforced.

LowerAngle

Gets the lower angle 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.

MotorSpeed

Gets or sets the speed the motor drives towards, in radians per second.

MotorTorque

Gets the torque the motor is currently applying, in newton-metres.

SpringEnabled

Gets or sets a value indicating whether the angular spring is enabled.

TargetAngle

Gets or sets the angle treated as zero by the limits, in radians.

UpperAngle

Gets the upper angle limit in radians.

Methods

Destroy(bool)

Destroys this joint.

SetLimits(float, float)

Sets both angle limits.