Table of Contents

Class PrismaticJointOptions

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

A slider: body B moves along an axis fixed in body A, without turning relative to it.

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

Properties

DampingRatio

Spring damping ratio; 1 is critical.

public float? DampingRatio { get; init; }

Property Value

float?

EnableLimit

Clamp the translation to LowerTranslation..UpperTranslation.

public bool? EnableLimit { get; init; }

Property Value

bool?

EnableMotor

Drive the slider 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?

LowerTranslation

Lower translation limit, in metres along the axis.

public float? LowerTranslation { get; init; }

Property Value

float?

MaxMotorForce

The most force the motor may apply, in newtons.

public float? MaxMotorForce { get; init; }

Property Value

float?

MotorSpeed

Motor speed, in metres per second.

public float? MotorSpeed { get; init; }

Property Value

float?

TargetTranslation

Translation the spring pulls toward, in metres along the axis.

public float? TargetTranslation { get; init; }

Property Value

float?

UpperTranslation

Upper translation limit, in metres along the axis.

public float? UpperTranslation { get; init; }

Property Value

float?