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
Whether the constraint is currently active in the physics simulation.
The first attachment used by the constraint or effect.
The second attachment used by the constraint or effect.
The color of the constraint visualization.
Whether the physics solver processes this constraint.
The direction of the line along which velocity is constrained.
The target speed along the selected line.
The maximum force the actuator can apply.
The two target velocity components in the selected plane.
The coordinate frame used to interpret the actuator's force or velocity.
The target three-dimensional linear velocity.
VelocityConstraintMode: Enum.VelocityConstraintMode = Enum.VelocityConstraintMode.Vectorparallel readWhether LinearVelocity constrains a vector, line, or plane.
Whether the constraint visualization is displayed.
Returns this instance if it is an ExecutionGroup.
Properties
Active
LinearVelocity.Active: boolean = falseWhether the constraint is currently active in the physics simulation.
Attachment0
LinearVelocity.Attachment0: Attachment? = nilThe first attachment used by the constraint or effect.
Attachment1
LinearVelocity.Attachment1: Attachment? = nilThe 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 = trueWhether 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 = 0The target speed along the selected line.
MaxForce
LinearVelocity.MaxForce: number = infThe maximum force the actuator can apply.
PlaneVelocity
LinearVelocity.PlaneVelocity: Vector2 = Vector2.new(0, 0)The two target velocity components in the selected plane.
RelativeTo
LinearVelocity.RelativeTo: Enum.ActuatorRelativeTo = Enum.ActuatorRelativeTo.WorldThe 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.VectorWhether LinearVelocity constrains a vector, line, or plane.
Visible
LinearVelocity.Visible: boolean = falseWhether 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
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying