Open Asterune
CylindricalConstraint

CylindricalConstraint

Allows translation and rotation along a shared attachment axis.

Creatable
Instance.new("CylindricalConstraint")
Inherits
SlidingBallConstraintConstraintInstance
Replication
Standard

Behavior

CylindricalConstraint allows translation and rotation along a shared attachment axis.

Summary

Members35
Properties34
Methods1

Properties

Active

CylindricalConstraint.Active: boolean = false

Whether the constraint is currently active in the physics simulation.

ActuatorType

CylindricalConstraint.ActuatorType: Enum.ActuatorType = Enum.ActuatorType.None

Selects no actuator, a velocity motor, or a position servo.

AngularActuatorType

CylindricalConstraint.AngularActuatorType: Enum.ActuatorType = Enum.ActuatorType.None

Selects the rotational actuator independently of the linear actuator.

AngularLimitsEnabled

CylindricalConstraint.AngularLimitsEnabled: boolean = false

Whether the constraint enforces its angular limits.

AngularLowerLimit

CylindricalConstraint.AngularLowerLimit: number = -45

The lower permitted rotation angle, in degrees.

AngularRestitution

CylindricalConstraint.AngularRestitution: number = 0

The restitution applied when an angular limit is reached.

AngularSpeed

CylindricalConstraint.AngularSpeed: number = 0

The rotational speed used by the angular servo.

AngularUpperLimit

CylindricalConstraint.AngularUpperLimit: number = 45

The upper permitted rotation angle, in degrees.

AngularVelocity

CylindricalConstraint.AngularVelocity: number = 0

The target angular velocity of the rotational motor.

Attachment0

CylindricalConstraint.Attachment0: Attachment? = nil

The first attachment used by the constraint or effect.

Attachment1

CylindricalConstraint.Attachment1: Attachment? = nil

The second attachment used by the constraint or effect.

Color

CylindricalConstraint.Color: Color3 = Color3.new(1, 0.686, 0)

The color of the constraint visualization.

CurrentAngle

CylindricalConstraint.CurrentAngle: number = 0

The current relative rotation angle of the attachments, in degrees.

CurrentPosition

CylindricalConstraint.CurrentPosition: number = 0

The current displacement along the constraint axis, in studs.

Enabled

CylindricalConstraint.Enabled: boolean = true

Whether the physics solver processes this constraint.

InclinationAngle

CylindricalConstraint.InclinationAngle: number = 0

The angle between the cylindrical constraint's translation and rotation axes.

LimitsEnabled

CylindricalConstraint.LimitsEnabled: boolean = false

Whether the constraint enforces its positional or angular limits.

LinearResponsiveness

CylindricalConstraint.LinearResponsiveness: number = 45

The response strength of the linear servo.

LowerLimit

CylindricalConstraint.LowerLimit: number = -5

The minimum permitted translation along the constraint axis, in studs.

MotorMaxAcceleration

CylindricalConstraint.MotorMaxAcceleration: number = inf

The maximum linear acceleration permitted for the motor.

MotorMaxAngularAcceleration

CylindricalConstraint.MotorMaxAngularAcceleration: number = inf

The maximum angular acceleration permitted for the motor.

MotorMaxForce

CylindricalConstraint.MotorMaxForce: number = inf

The maximum force the linear motor can apply.

MotorMaxTorque

CylindricalConstraint.MotorMaxTorque: number = inf

The maximum torque the angular motor can apply.

Restitution

CylindricalConstraint.Restitution: number = 0

The restitution applied when a constraint limit is reached.

ServoMaxForce

CylindricalConstraint.ServoMaxForce: number = inf

The maximum force the position servo can apply.

ServoMaxTorque

CylindricalConstraint.ServoMaxTorque: number = inf

The maximum torque the orientation servo can apply.

Size

CylindricalConstraint.Size: number = 1

The size of the constraint visualization.

Speed

CylindricalConstraint.Speed: number = 0

The speed at which the linear servo approaches its target.

TargetAngle

CylindricalConstraint.TargetAngle: number = 0

The angular position sought by a servo, in degrees.

TargetPosition

CylindricalConstraint.TargetPosition: number = 0

The linear position sought by a servo, in studs.

UpperLimit

CylindricalConstraint.UpperLimit: number = 5

The maximum permitted translation along the constraint axis, in studs.

Velocity

CylindricalConstraint.Velocity: number = 0

The target linear velocity along the constraint axis.

Visible

CylindricalConstraint.Visible: boolean = false

Whether the constraint visualization is displayed.

WorldLimitsEnabled

CylindricalConstraint.WorldLimitsEnabled: boolean = false

Whether the configured translation limits are evaluated in world space.

Methods

GetExecutionGroup

CylindricalConstraint:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

Inherited members

Inherited47

SlidingBallConstraint