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
Whether the constraint is currently active in the physics simulation.
Selects no actuator, a velocity motor, or a position servo.
The first attachment used by the constraint or effect.
The second attachment used by the constraint or effect.
The color of the constraint visualization.
The current displacement along the constraint axis, in studs.
Whether the physics solver processes this constraint.
Whether the constraint enforces its positional or angular limits.
The response strength of the linear servo.
The minimum permitted translation along the constraint axis, in studs.
The maximum linear acceleration permitted for the motor.
The maximum force the linear motor can apply.
The restitution applied when a constraint limit is reached.
The maximum force the position servo can apply.
The size of the constraint visualization.
The speed at which the linear servo approaches its target.
The linear position sought by a servo, in studs.
The maximum permitted translation along the constraint axis, in studs.
The target linear velocity along the constraint axis.
Whether the constraint visualization is displayed.
Returns this instance if it is an ExecutionGroup.
Properties
Active
PrismaticConstraint.Active: boolean = falseWhether the constraint is currently active in the physics simulation.
ActuatorType
PrismaticConstraint.ActuatorType: Enum.ActuatorType = Enum.ActuatorType.NoneSelects no actuator, a velocity motor, or a position servo.
Attachment0
PrismaticConstraint.Attachment0: Attachment? = nilThe first attachment used by the constraint or effect.
Attachment1
PrismaticConstraint.Attachment1: Attachment? = nilThe 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 = 0The current displacement along the constraint axis, in studs.
Enabled
PrismaticConstraint.Enabled: boolean = trueWhether the physics solver processes this constraint.
LimitsEnabled
PrismaticConstraint.LimitsEnabled: boolean = falseWhether the constraint enforces its positional or angular limits.
LinearResponsiveness
PrismaticConstraint.LinearResponsiveness: number = 45The response strength of the linear servo.
LowerLimit
PrismaticConstraint.LowerLimit: number = -45The minimum permitted translation along the constraint axis, in studs.
MotorMaxAcceleration
PrismaticConstraint.MotorMaxAcceleration: number = infThe maximum linear acceleration permitted for the motor.
MotorMaxForce
PrismaticConstraint.MotorMaxForce: number = infThe maximum force the linear motor can apply.
Restitution
PrismaticConstraint.Restitution: number = 0The restitution applied when a constraint limit is reached.
ServoMaxForce
PrismaticConstraint.ServoMaxForce: number = infThe maximum force the position servo can apply.
Size
PrismaticConstraint.Size: number = 1The size of the constraint visualization.
Speed
PrismaticConstraint.Speed: number = 0The speed at which the linear servo approaches its target.
TargetPosition
PrismaticConstraint.TargetPosition: number = 0The linear position sought by a servo, in studs.
UpperLimit
PrismaticConstraint.UpperLimit: number = 45The maximum permitted translation along the constraint axis, in studs.
Velocity
PrismaticConstraint.Velocity: number = 0The target linear velocity along the constraint axis.
Visible
PrismaticConstraint.Visible: boolean = falseWhether 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
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying