Class · inherits Constraint
RodConstraint
Keeps two attachments separated by its defined
Length.
About RodConstraint
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
CurrentDistance
: floatReadOnlyNotReplicatedThe current distance between the constraint'sAttachments.Length
: floatThe distance apart at which the constraint attempts to keep itsAttachments.The distance apart at which the constraint attempts to keep its
Attachments. Measured in studs.LimitAngle0
: floatThe maximum angle between the rod andAttachment0whenLimitsEnabledis true.This property determines the maximum angle between the rod and
Attachment0whenLimitsEnabledis true.LimitAngle1
: floatThe maximum angle between the rod andAttachment1whenLimitsEnabledis true.This property determines the maximum angle between the rod and
Attachment1whenLimitsEnabledis true.LimitsEnabled
: booleanDetermines whetherLimitAngle0andLimitAngle1control the angles between the rod and the respective attachments.This property determines whether the
LimitAngle0andLimitAngle1properties control the angles between the rod and the respective attachments.Thickness
: floatThe visualized thickness of theRodConstraint.
RodConstraint also has every member of Constraint. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.