PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

CylindricalConstraint

Show deprecated

CylindricalConstraint

Show deprecated

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 Constraint/Attachment0. The rotation axis is centered at the constraint’s Constraint/Attachment1 and is angled off of the sliding constraint by the constraint’s CylindricalConstraint/InclinationAngle.

This constraint, along with a SpringConstraint, is ideal for building vehicle suspension as demonstrated in /articles/building carkit 1|Building a Basic Car.

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.

Properties

ActuatorType

AngularActuatorType

Type of angular actuator: None, Motor, or Servo.

bool

AngularLimitsEnabled

Enables the angular limits around the rotation axis.

float

AngularRestitution

Restitution of the two limits, or how elastic they are. Value in [0, 1].

float

AngularSpeed

Target angular speed. This value is unsigned as the servo will always move toward its target. In radians per second. Value in [0, inf).

float

AngularVelocity

The target angular velocity of the motor in radians per second around the rotation axis. Value in [0, inf).

float

CurrentAngle

[ReadOnly] [NotReplicated]

Signed angle (in degrees) between the reference axis and the secondary axis of Attachment1 around the rotation axis. Value in [-180, 180].

float

InclinationAngle

Direction of the rotation axis as an angle from the x-axis in the xy-plane of Attachment0. Value in [-180, 180].

float

LowerAngle

Lower limit for the angle (in degrees) between the reference axis and the SecondaryAxis of Attachment1 around the rotation axis. Value in [-180, 180].

float

MotorMaxAngularAcceleration

The maximum angular acceleration of the motor in radians per second squared. Value in [0, inf).

float

MotorMaxTorque

The maximum torque the motor can apply to achieve the target angular velocity. The units are mass * studs^2 / second^2. Value in [0, inf).

bool

RotationAxisVisible

Enable the visibility of the rotation axis.

float

ServoMaxTorque

Maximum torque the servo motor can apply. The units are mass * studs^2 / second^2. Value in [0, inf).

float

TargetAngle

Target angle (in degrees) between the reference axis and the secondary axis of Attachment1 around the rotation axis. Value in [-180, 180].

float

UpperAngle

Upper limit for the angle (in degrees) between the reference axis and the SecondaryAxis of Attachment1 around the rotation axis. Value in [-180, 180].

Vector3

WorldRotationAxis

[ReadOnly] [NotReplicated]

The unit vector direction of the rotation axis in world coordinates.

Functions

Events