Class
RodConstraint
Keeps two attachments separated by its defined
Length.
A RodConstraint keeps two attachments separated by its defined
Length. By default, both attachments can rotate
freely, although you can enable limits to restrict rotational tilt.
Note that if this constraint attaches one part (A) to another part (B) that is anchored or connected to an anchored part (Z), part A will not be locally simulated when interacting with a player.
Limits#
You can limit rotation of the attachments within a cone, independently of each
other, by enabling the LimitsEnabled
property and setting LimitAngle0 and
LimitAngle1 respectively.
Properties 6#
CurrentDistancefloat | The current distance between the constraint's
Attachments.ReadSafeReadOnlyNotReplicated |
Lengthfloat | The distance apart at which the constraint attempts to keep its
Attachments.ReadSafe |
LimitAngle0float | The maximum angle between the rod and
Attachment0 when
LimitsEnabled is true.ReadSafe |
LimitAngle1float | The maximum angle between the rod and
Attachment1 when
LimitsEnabled is true.ReadSafe |
LimitsEnabledboolean | Determines whether LimitAngle0 and
LimitAngle1 control the angles between
the rod and the respective attachments.ReadSafe |
Thicknessfloat | The visualized thickness of the RodConstraint.ReadSafe |
CurrentDistance: float#
ReadOnlyNotReplicatedReadSafe
The current distance between the constraint's
Attachments.
Length: float#
ReadSafe
The distance apart at which the constraint attempts to keep its
Attachments. Measured in studs.
LimitAngle0: float#
ReadSafe
This property determines the maximum angle between the rod and
Attachment0 when
LimitsEnabled is true.
LimitAngle1: float#
ReadSafe
This property determines the maximum angle between the rod and
Attachment1 when
LimitsEnabled is true.
LimitsEnabled: boolean#
ReadSafe
This property determines whether the
LimitAngle0 and
LimitAngle1 properties control the
angles between the rod and the respective attachments.
Thickness: float#
ReadSafe
The visualized thickness of the RodConstraint.
Inherited members#
Inherited from Instance 58
Properties (10)
Archivable, archivable, Capabilities, IsInSandbox, Name, Parent, PredictionMode, RobloxLocked, Sandboxed, UniqueId
Methods (39)
AddTag, children, ClearAllChildren, Clone, clone, Destroy, destroy, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, findFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, FindFirstDescendant, GetActor, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, getChildren, GetDebugId, GetDescendants, GetFullName, GetStyled, GetStyledPropertyChangedSignal, GetTags, HasTag, IsAncestorOf, IsDescendantOf, isDescendantOf, IsPropertyModified, QueryDescendants, Remove, remove, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild