Table of Contents

Struct PrismaticJoint

Namespace
Box3D
Assembly
Box3D.NET.dll

A slider. Body B translates along one axis and cannot rotate relative to body A.

public readonly record struct PrismaticJoint : IEquatable<PrismaticJoint>

Implements

Inherited Members

Properties

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 translation limits are enforced.

LowerTranslation

Gets the lower translation limit.

MaxMotorForce

Gets or sets the maximum force the motor may apply, in newtons.

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.

Speed

Gets the current speed along the slide axis, usually in metres per second.

SpringEnabled

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

TargetTranslation

Gets or sets the translation the spring drives towards.

Translation

Gets the current translation along the slide axis, usually in metres.

UpperTranslation

Gets the upper translation limit.

Methods

Destroy(bool)

Destroys this joint.

SetLimits(float, float)

Sets both translation limits.