Open Asterune
PrismaticConstraint

PrismaticConstraint

Allows translation along a shared attachment axis without relative rotation.

Creatable
Instance.new("PrismaticConstraint")
Inherits
SlidingBallConstraintConstraintInstance
Replication
Standard

Behavior

PrismaticConstraint allows translation along a shared attachment axis without relative rotation.

Summary

Members21
Properties20
Methods1

Properties

Active

PrismaticConstraint.Active: boolean = false

Whether the constraint is currently active in the physics simulation.

ActuatorType

PrismaticConstraint.ActuatorType: Enum.ActuatorType = Enum.ActuatorType.None

Selects no actuator, a velocity motor, or a position servo.

Attachment0

PrismaticConstraint.Attachment0: Attachment? = nil

The first attachment used by the constraint or effect.

Attachment1

PrismaticConstraint.Attachment1: Attachment? = nil

The second attachment used by the constraint or effect.

Color

PrismaticConstraint.Color: Color3 = Color3.new(1, 0.686, 0)

The color of the constraint visualization.

CurrentPosition

PrismaticConstraint.CurrentPosition: number = 0

The current displacement along the constraint axis, in studs.

Enabled

PrismaticConstraint.Enabled: boolean = true

Whether the physics solver processes this constraint.

LimitsEnabled

PrismaticConstraint.LimitsEnabled: boolean = false

Whether the constraint enforces its positional or angular limits.

LinearResponsiveness

PrismaticConstraint.LinearResponsiveness: number = 45

The response strength of the linear servo.

LowerLimit

PrismaticConstraint.LowerLimit: number = -45

The minimum permitted translation along the constraint axis, in studs.

MotorMaxAcceleration

PrismaticConstraint.MotorMaxAcceleration: number = inf

The maximum linear acceleration permitted for the motor.

MotorMaxForce

PrismaticConstraint.MotorMaxForce: number = inf

The maximum force the linear motor can apply.

Restitution

PrismaticConstraint.Restitution: number = 0

The restitution applied when a constraint limit is reached.

ServoMaxForce

PrismaticConstraint.ServoMaxForce: number = inf

The maximum force the position servo can apply.

Size

PrismaticConstraint.Size: number = 1

The size of the constraint visualization.

Speed

PrismaticConstraint.Speed: number = 0

The speed at which the linear servo approaches its target.

TargetPosition

PrismaticConstraint.TargetPosition: number = 0

The linear position sought by a servo, in studs.

UpperLimit

PrismaticConstraint.UpperLimit: number = 45

The maximum permitted translation along the constraint axis, in studs.

Velocity

PrismaticConstraint.Velocity: number = 0

The target linear velocity along the constraint axis.

Visible

PrismaticConstraint.Visible: boolean = false

Whether the constraint visualization is displayed.

Methods

GetExecutionGroup

PrismaticConstraint:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

Inherited members

Inherited47

SlidingBallConstraint