CylindricalConstraint
Constrains two attachments on two parts to have a relative linear and rotational motion.
Memory category | PhysicsParts |
---|
Member index 17
Removed member index 1
History | Member | |
---|---|---|
313 | AzimuthalAngle: float |
Description
A CylindricalConstraint allows its attachments to slide along one axis and rotate about another axis. It can be thought of like a combination of a PrismaticConstraint and a HingeConstraint. The sliding axis is determined by the X axis of the constraint's Attachment0. The rotation axis is centered at the constraint's Attachment1 and is angled off of the sliding constraint by the constraint's InclinationAngle.
This constraint, along with a SpringConstraint, is ideal for building vehicle suspension.
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.
When configuring this constraint, it may be helpful to study Roblox Units to understand how Roblox units compare to metric units.
Angular Power
If a cylindrical's AngularActuatorType is set to Motor, it attempts to rotate the attachments with the goal of reaching its AngularVelocity. You can further control this rotation through both MotorMaxAngularAcceleration and MotorMaxTorque. If a cylindrical's AngularActuatorType is set to Servo, it attempts to rotate to an angle specified by TargetAngle. This rotation is controlled by AngularSpeed, AngularResponsiveness, and ServoMaxTorque.
Linear Power
If a cylindrical's ActuatorType is set to Motor, it attempts to translate the attachments with the goal of reaching Velocity. You can further control this translation through both MotorMaxAcceleration and MotorMaxForce. If a cylindrical's ActuatorType is set to Servo, it attempts to translate the attachments to a set separation specified by TargetPosition. This translation is controlled by Speed, LinearResponsiveness, and ServoMaxForce.
Limits
You can set limits to restrict both the sliding range and rotation of a cylindrical constraint. Enabling the LimitsEnabled property exposes the LowerLimit and UpperLimit values, as well as Restitution which defines the elasticity of the attachments when they reach either limit. Enabling the AngularLimitsEnabled property exposes the LowerAngle and UpperAngle limits, as well as AngularRestitution which defines the elasticity of the attachments when they reach either limit.
Inclination Angle
InclinationAngle defines the direction of the rotation axis as an angle from the X axis in the XY plane of Attachment0, from -180 to 180. This lets you tilt the rotating element without changing the sliding axis.
History 72
- 611 Change Tags of SoftlockAngularServoUponReachingTarget from [] to [Deprecated]
- 605 Change Default of MotorMaxAngularAcceleration from INF to 500000
- 600 Add SoftlockAngularServoUponReachingTarget
- 553 Change Default of WorldRotationAxis from to Vector3(1, 0, 0)
- 553 Change Default of UpperAngle from to 45
- 553 Change Default of TargetAngle from to 0
- 553 Change Default of ServoMaxTorque from to 0
- 553 Change Default of RotationAxisVisible from to false
- 553 Change Default of MotorMaxTorque from to 0
- 553 Change Default of MotorMaxAngularAcceleration from to INF
- 553 Change Default of LowerAngle from to -45
- 553 Change Default of InclinationAngle from to 0
- 553 Change Default of CurrentAngle from to 0
- 553 Change Default of AngularVelocity from to 0
- 553 Change Default of AngularSpeed from to 0
- 553 Change Default of AngularRestitution from to 0
- 553 Change Default of AngularResponsiveness from to 45
- 553 Change Default of AngularLimitsEnabled from to false
- 553 Change Default of AngularActuatorType from to None
- 486 Change ThreadSafety of WorldRotationAxis from ReadOnly to ReadSafe
- 486 Change ThreadSafety of UpperAngle from ReadOnly to ReadSafe
- 486 Change ThreadSafety of TargetAngle from ReadOnly to ReadSafe
- 486 Change ThreadSafety of ServoMaxTorque from ReadOnly to ReadSafe
- 486 Change ThreadSafety of RotationAxisVisible from ReadOnly to ReadSafe
- 486 Change ThreadSafety of MotorMaxTorque from ReadOnly to ReadSafe
- 486 Change ThreadSafety of MotorMaxAngularAcceleration from ReadOnly to ReadSafe
- 486 Change ThreadSafety of LowerAngle from ReadOnly to ReadSafe
- 486 Change ThreadSafety of InclinationAngle from ReadOnly to ReadSafe
- 486 Change ThreadSafety of CurrentAngle from ReadOnly to ReadSafe
- 486 Change ThreadSafety of AngularVelocity from ReadOnly to ReadSafe
- 486 Change ThreadSafety of AngularSpeed from ReadOnly to ReadSafe
- 486 Change ThreadSafety of AngularRestitution from ReadOnly to ReadSafe
- 486 Change ThreadSafety of AngularResponsiveness from ReadOnly to ReadSafe
- 486 Change ThreadSafety of AngularLimitsEnabled from ReadOnly to ReadSafe
- 486 Change ThreadSafety of AngularActuatorType from ReadOnly to ReadSafe
- 470 Add AngularResponsiveness
- 462 Change ThreadSafety of WorldRotationAxis from to ReadOnly
- 462 Change ThreadSafety of UpperAngle from to ReadOnly
- 462 Change ThreadSafety of TargetAngle from to ReadOnly
- 462 Change ThreadSafety of ServoMaxTorque from to ReadOnly
- 462 Change ThreadSafety of RotationAxisVisible from to ReadOnly
- 462 Change ThreadSafety of MotorMaxTorque from to ReadOnly
- 462 Change ThreadSafety of MotorMaxAngularAcceleration from to ReadOnly
- 462 Change ThreadSafety of LowerAngle from to ReadOnly
- 462 Change ThreadSafety of InclinationAngle from to ReadOnly
- 462 Change ThreadSafety of CurrentAngle from to ReadOnly
- 462 Change ThreadSafety of AngularVelocity from to ReadOnly
- 462 Change ThreadSafety of AngularSpeed from to ReadOnly
- 462 Change ThreadSafety of AngularRestitution from to ReadOnly
- 462 Change ThreadSafety of AngularLimitsEnabled from to ReadOnly
- 462 Change ThreadSafety of AngularActuatorType from to ReadOnly
- 454 Change MemoryCategory of CylindricalConstraint from Instances to PhysicsParts
- 452 Change MemoryCategory of CylindricalConstraint from PhysicsParts to Instances
- 453 Change MemoryCategory of CylindricalConstraint from Instances to PhysicsParts
- 315 Add RotationAxisVisible
- 313 Add WorldRotationAxis
- 313 Add UpperAngle
- 313 Add TargetAngle
- 313 Add ServoMaxTorque
- 313 Add MotorMaxTorque
- 313 Add MotorMaxAngularAcceleration
- 313 Add LowerAngle
- 313 Add CurrentAngle
- 313 Remove AzimuthalAngle
- 313 Add AngularVelocity
- 313 Add AngularSpeed
- 313 Add AngularRestitution
- 313 Add AngularLimitsEnabled
- 313 Add AngularActuatorType
- 241 Add InclinationAngle
- 241 Add AzimuthalAngle
- 241 Add CylindricalConstraint
Members 17
AngularActuatorType
Type | Default | |
---|---|---|
ActuatorType | None |
If a cylindrical's AngularActuatorType is set to Motor, it attempts to rotate the attachments with the goal of reaching its AngularVelocity. You can further control this rotation through both MotorMaxAngularAcceleration and MotorMaxTorque.
If a cylindrical's AngularActuatorType is set to Servo, it attempts to rotate to an angle specified by TargetAngle. This rotation is controlled by AngularSpeed, AngularResponsiveness, and ServoMaxTorque.
Thread safety | ReadSafe |
---|---|
Category | Cylinder |
Loaded/Saved | true |
History 4
- 553 Change Default of AngularActuatorType from to None
- 486 Change ThreadSafety of AngularActuatorType from ReadOnly to ReadSafe
- 462 Change ThreadSafety of AngularActuatorType from to ReadOnly
- 313 Add AngularActuatorType
AngularLimitsEnabled
Type | Default | |
---|---|---|
bool | false |
Enables the angular limits around the rotation axis.
Thread safety | ReadSafe |
---|---|
Category | Cylinder |
Loaded/Saved | true |
History 4
- 553 Change Default of AngularLimitsEnabled from to false
- 486 Change ThreadSafety of AngularLimitsEnabled from ReadOnly to ReadSafe
- 462 Change ThreadSafety of AngularLimitsEnabled from to ReadOnly
- 313 Add AngularLimitsEnabled
AngularResponsiveness
Type | Default | |
---|---|---|
float | 45 |
This property specifies the sharpness of the angular servo motor in reaching the TargetAngle, when AngularActuatorType is set to Servo. Larger values correspond to a faster response and smaller values results in more damping and a slower response.
Thread safety | ReadSafe |
---|---|
Category | AngularServo |
Loaded/Saved | true |
History 3
- 553 Change Default of AngularResponsiveness from to 45
- 486 Change ThreadSafety of AngularResponsiveness from ReadOnly to ReadSafe
- 470 Add AngularResponsiveness
AngularRestitution
Type | Default | |
---|---|---|
float | 0 |
Restitution of the two limits, or how elastic they are. Constrained between 0 and 1.
Thread safety | ReadSafe |
---|---|
Category | AngularLimits |
Loaded/Saved | true |
History 4
- 553 Change Default of AngularRestitution from to 0
- 486 Change ThreadSafety of AngularRestitution from ReadOnly to ReadSafe
- 462 Change ThreadSafety of AngularRestitution from to ReadOnly
- 313 Add AngularRestitution
AngularSpeed
Type | Default | |
---|---|---|
float | 0 |
Target angular speed. This value is unsigned as the servo will always move toward its target. In radians per second.
Thread safety | ReadSafe |
---|---|
Category | AngularServo |
Loaded/Saved | true |
History 4
- 553 Change Default of AngularSpeed from to 0
- 486 Change ThreadSafety of AngularSpeed from ReadOnly to ReadSafe
- 462 Change ThreadSafety of AngularSpeed from to ReadOnly
- 313 Add AngularSpeed
AngularVelocity
Type | Default | |
---|---|---|
float | 0 |
The target angular velocity of the motor in radians per second around the rotation axis.
Thread safety | ReadSafe |
---|---|
Category | AngularMotor |
Loaded/Saved | true |
History 4
- 553 Change Default of AngularVelocity from to 0
- 486 Change ThreadSafety of AngularVelocity from ReadOnly to ReadSafe
- 462 Change ThreadSafety of AngularVelocity from to ReadOnly
- 313 Add AngularVelocity
CurrentAngle
Type | Default | |
---|---|---|
float | 0 |
Signed angle (in degrees) between the reference axis and the secondary axis of Attachment1 around the rotation axis. Valid range between -180 and 180.
Thread safety | ReadSafe |
---|---|
Category | Derived |
Loaded/Saved | false/true |
History 4
- 553 Change Default of CurrentAngle from to 0
- 486 Change ThreadSafety of CurrentAngle from ReadOnly to ReadSafe
- 462 Change ThreadSafety of CurrentAngle from to ReadOnly
- 313 Add CurrentAngle
InclinationAngle
Type | Default | |
---|---|---|
float | 0 |
Direction of the rotation axis as an angle from the X axis in the XY plane of Attachment0. Valid range between -180 and 180.
Thread safety | ReadSafe |
---|---|
Category | Cylinder |
Loaded/Saved | true |
History 4
- 553 Change Default of InclinationAngle from to 0
- 486 Change ThreadSafety of InclinationAngle from ReadOnly to ReadSafe
- 462 Change ThreadSafety of InclinationAngle from to ReadOnly
- 241 Add InclinationAngle
LowerAngle
Type | Default | |
---|---|---|
float | -45 |
Lower limit for the angle (in degrees) between the reference axis and the SecondaryAxis of Attachment1 around the rotation axis. Valid range between -180 and 180.
Thread safety | ReadSafe |
---|---|
Category | AngularLimits |
Loaded/Saved | true |
History 4
- 553 Change Default of LowerAngle from to -45
- 486 Change ThreadSafety of LowerAngle from ReadOnly to ReadSafe
- 462 Change ThreadSafety of LowerAngle from to ReadOnly
- 313 Add LowerAngle
MotorMaxAngularAcceleration
Type | Default | |
---|---|---|
float | 500000 |
The maximum angular acceleration of the motor in radians per second squared.
Thread safety | ReadSafe |
---|---|
Category | AngularMotor |
Loaded/Saved | true |
History 5
- 605 Change Default of MotorMaxAngularAcceleration from INF to 500000
- 553 Change Default of MotorMaxAngularAcceleration from to INF
- 486 Change ThreadSafety of MotorMaxAngularAcceleration from ReadOnly to ReadSafe
- 462 Change ThreadSafety of MotorMaxAngularAcceleration from to ReadOnly
- 313 Add MotorMaxAngularAcceleration
MotorMaxTorque
Type | Default | |
---|---|---|
float | 0 |
The maximum torque the motor can apply to achieve the target angular velocity. Units are mass × studs²/second².
Thread safety | ReadSafe |
---|---|
Category | AngularMotor |
Loaded/Saved | true |
History 4
- 553 Change Default of MotorMaxTorque from to 0
- 486 Change ThreadSafety of MotorMaxTorque from ReadOnly to ReadSafe
- 462 Change ThreadSafety of MotorMaxTorque from to ReadOnly
- 313 Add MotorMaxTorque
RotationAxisVisible
Type | Default | |
---|---|---|
bool | false |
Enable the visibility of the rotation axis.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
History 4
- 553 Change Default of RotationAxisVisible from to false
- 486 Change ThreadSafety of RotationAxisVisible from ReadOnly to ReadSafe
- 462 Change ThreadSafety of RotationAxisVisible from to ReadOnly
- 315 Add RotationAxisVisible
ServoMaxTorque
Type | Default | |
---|---|---|
float | 0 |
Maximum torque the servo motor can apply. Units are mass × studs²/second².
Thread safety | ReadSafe |
---|---|
Category | AngularServo |
Loaded/Saved | true |
History 4
- 553 Change Default of ServoMaxTorque from to 0
- 486 Change ThreadSafety of ServoMaxTorque from ReadOnly to ReadSafe
- 462 Change ThreadSafety of ServoMaxTorque from to ReadOnly
- 313 Add ServoMaxTorque
SoftlockAngularServoUponReachingTarget
Type | Default | |
---|---|---|
bool | false |
Thread safety | ReadSafe |
---|---|
Category | AngularServo |
Loaded/Saved | true |
History 2
- 611 Change Tags of SoftlockAngularServoUponReachingTarget from [] to [Deprecated]
- 600 Add SoftlockAngularServoUponReachingTarget
TargetAngle
Type | Default | |
---|---|---|
float | 0 |
Target angle (in degrees) between the reference axis and the secondary axis of Attachment1 around the rotation axis. Valid range between -180 and 180.
Thread safety | ReadSafe |
---|---|
Category | AngularServo |
Loaded/Saved | true |
History 4
- 553 Change Default of TargetAngle from to 0
- 486 Change ThreadSafety of TargetAngle from ReadOnly to ReadSafe
- 462 Change ThreadSafety of TargetAngle from to ReadOnly
- 313 Add TargetAngle
UpperAngle
Type | Default | |
---|---|---|
float | 45 |
Upper limit for the angle (in degrees) between the reference axis and the secondary axis of Attachment1 around the rotation axis. Valid range between -180 and 180.
Thread safety | ReadSafe |
---|---|
Category | AngularLimits |
Loaded/Saved | true |
History 4
- 553 Change Default of UpperAngle from to 45
- 486 Change ThreadSafety of UpperAngle from ReadOnly to ReadSafe
- 462 Change ThreadSafety of UpperAngle from to ReadOnly
- 313 Add UpperAngle
WorldRotationAxis
Type | Default | |
---|---|---|
Vector3 | 1, 0, 0 |
The unit vector direction of the rotation axis in world coordinates.
Thread safety | ReadSafe |
---|---|
Category | Derived |
Loaded/Saved | false/true |
History 4
- 553 Change Default of WorldRotationAxis from to Vector3(1, 0, 0)
- 486 Change ThreadSafety of WorldRotationAxis from ReadOnly to ReadSafe
- 462 Change ThreadSafety of WorldRotationAxis from to ReadOnly
- 313 Add WorldRotationAxis
Removed members 1
AzimuthalAngle
Type | Default | |
---|---|---|
float |
Category | |
---|---|
Loaded/Saved | false |
History 2
- 313 Remove AzimuthalAngle
- 241 Add AzimuthalAngle