Table of Contents

Class RevoluteJointOptions

Namespace
Stride.CommunityToolkit.Box2D
Assembly
Stride.CommunityToolkit.Box2D.dll

A hinge: the bodies share a pivot and turn about it. Optionally sprung toward a target angle, limited to an angular range, or driven by a motor.

public sealed record RevoluteJointOptions : JointOptionsBase, IEquatable<JointOptionsBase>, IEquatable<RevoluteJointOptions>
Inheritance
RevoluteJointOptions
Implements
Inherited Members

Properties

DampingRatio

Spring damping ratio; 1 is critical.

public float? DampingRatio { get; init; }

Property Value

float?

EnableLimit

Clamp the angle to LowerAngle..UpperAngle.

public bool? EnableLimit { get; init; }

Property Value

bool?

EnableMotor

Drive the hinge at MotorSpeed.

public bool? EnableMotor { get; init; }

Property Value

bool?

EnableSpring

Turn the spring on.

public bool? EnableSpring { get; init; }

Property Value

bool?

Hertz

Spring stiffness, in hertz.

public float? Hertz { get; init; }

Property Value

float?

LowerAngle

Lower angular limit, in radians from the pose at creation.

public float? LowerAngle { get; init; }

Property Value

float?

MaxMotorTorque

The most torque the motor may apply, in newton-metres.

public float? MaxMotorTorque { get; init; }

Property Value

float?

MotorSpeed

Motor speed, in radians per second.

public float? MotorSpeed { get; init; }

Property Value

float?

TargetAngle

Angle the spring pulls toward, in radians from the pose at creation.

public float? TargetAngle { get; init; }

Property Value

float?

UpperAngle

Upper angular limit, in radians from the pose at creation.

public float? UpperAngle { get; init; }

Property Value

float?