Open Asterune
LinearVelocity

LinearVelocity

Applies force to maintain a target linear velocity.

Creatable
Instance.new("LinearVelocity")
Inherits
ConstraintInstance
Replication
Standard

Behavior

LinearVelocity applies force to maintain a target linear velocity.

Summary

Members14
Properties13
Methods1

Properties

Active

LinearVelocity.Active: boolean = false

Whether the constraint is currently active in the physics simulation.

Attachment0

LinearVelocity.Attachment0: Attachment? = nil

The first attachment used by the constraint or effect.

Attachment1

LinearVelocity.Attachment1: Attachment? = nil

The second attachment used by the constraint or effect.

Color

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

The color of the constraint visualization.

Enabled

LinearVelocity.Enabled: boolean = true

Whether the physics solver processes this constraint.

LineDirection

LinearVelocity.LineDirection: Vector3 = Vector3.new(0, 0, 0)

The direction of the line along which velocity is constrained.

LineVelocity

LinearVelocity.LineVelocity: number = 0

The target speed along the selected line.

MaxForce

LinearVelocity.MaxForce: number = inf

The maximum force the actuator can apply.

PlaneVelocity

LinearVelocity.PlaneVelocity: Vector2 = Vector2.new(0, 0)

The two target velocity components in the selected plane.

RelativeTo

The coordinate frame used to interpret the actuator's force or velocity.

VectorVelocity

LinearVelocity.VectorVelocity: Vector3 = Vector3.new(0, 0, 0)

The target three-dimensional linear velocity.

VelocityConstraintMode

LinearVelocity.VelocityConstraintMode: Enum.VelocityConstraintMode = Enum.VelocityConstraintMode.Vector

Whether LinearVelocity constrains a vector, line, or plane.

Visible

LinearVelocity.Visible: boolean = false

Whether the constraint visualization is displayed.

Methods

GetExecutionGroup

LinearVelocity: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

Constraint