rojo/.cursor/rules/roblox/reference/engine/classes/PrismaticConstraint.yaml
2026-02-02 12:08:47 -06:00

38 lines
1.4 KiB
YAML

# This file is automatically generated. Please don't edit it manually.
# To submit a bug report on the content, see
# https://devforum.roblox.com/c/bug-reports/documentation-issues/72
name: PrismaticConstraint
type: class
memory_category: BaseParts
summary: |
Constraint which creates a rigid joint between two
`Class.Attachment|Attachments`, allowing them to slide along one axis but not
rotate.
description: |
A **PrismaticConstraint** creates a rigid joint between two
`Class.Attachment|Attachments`, allowing them to slide along one axis but not
rotate. This constrains the attachments so that their **X** axes are collinear
but pointing in opposite directions. It also constrains the attachments so
that their **Y** axes are parallel.
This constraint inherits many properties from `Class.SlidingBallConstraint`
including `Class.SlidingBallConstraint.ActuatorType|ActuatorType`,
`Class.SlidingBallConstraint.LimitsEnabled|LimitsEnabled`,
`Class.SlidingBallConstraint.Velocity|Velocity`, and more. Please refer to
`Class.SlidingBallConstraint` for details on configuring a
`Class.PrismaticConstraint`.
When configuring this constraint, it may be helpful to study
[Roblox Units](../../../physics/units.md) to understand how Roblox units
compare to metric units.
code_samples: []
inherits:
- SlidingBallConstraint
descendants: []
tags: []
deprecation_message: ''
properties: []
methods: []
events: []
callbacks: []