We use cookies on this site to enhance your user experience

CylindricalConstraint

CylindricalConstraint

A CylindricalConstraint allows its Attachment to slide along an 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.


Properties

Name Type Description
ActuatorType

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

bool

Enables the angular limits around the rotation axis.

float

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

float

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

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

float

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

float

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

float

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

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

float

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

Enable the visibility of the rotation axis.

float

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

float

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

float

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

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

Inherited from Instance , Constraint , SlidingBallConstraint

Archivable ClassName DataCost Name Parent RobloxLocked Attachment0 Attachment1 Color Enabled Visible ActuatorType CurrentPosition LimitsEnabled LowerLimit MotorMaxAcceleration MotorMaxForce Restitution ServoMaxForce Size Speed TargetPosition UpperLimit Velocity