mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-25 13:24:08 +00:00
2.2 KiB
2.2 KiB
| title | description |
|---|---|
| LinearVelocity | The LinearVelocity constraint applies force on an assembly to maintain a constant velocity along a 3D vector, line, or 2D plane. |
A Class.LinearVelocity constraint applies force on an assembly to maintain a constant velocity. It can be set to apply force along a Datatype.Vector3, line, or 2D plane.
Relativity
Application of velocity can be controlled through the constraint's Class.LinearVelocity.RelativeTo|RelativeTo property. If set to Enum.ActuatorRelativeTo|World, force will be applied in world coordinates, independent of the parent or attachment orientations. If set to Enum.ActuatorRelativeTo|Attachment0 or Enum.ActuatorRelativeTo|Attachment1, force will be applied relative to Class.Constraint.Attachment0|Attachment0 or Class.Constraint.Attachment1|Attachment1 respectively.