PrismaticJointComponent Class

Constrains two bodies to slide along a local axis while preventing relative rotation. Supports translation limits, a linear motor, and a spring. LocalAnchorA and LocalAnchorB are the anchor points on each body.

public sealed class PrismaticJointComponent : Brine2D.ECS.Components.Joints.JointComponent

Inheritance System.ObjectComponentJointComponent → PrismaticJointComponent

Properties
CurrentTranslation Current translation along the axis in pixels. Returns 0 if not yet live.
DampingRatio Spring damping ratio. 0 = undamped, 1 = critical.
HertzFrequency Spring stiffness in Hz. 0 = rigid.
LocalAxisA Local axis of translation on body A (normalized). Default is System.Numerics.Vector2.UnitX.
LowerTranslation Lower translation limit in pixels.
MaxMotorForce Maximum motor force in Newtons.
MotorForce Current motor force in Newtons. Returns 0 if not yet live.
MotorSpeed Desired motor speed in pixels per second.
UpperTranslation Upper translation limit in pixels.