Open Asterune
VectorForce

VectorForce

Applies a constant force in a selected coordinate frame.

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

Behavior

VectorForce applies a constant force in a selected coordinate frame.

Summary

Members10
Properties9
Methods1

Properties

Active

VectorForce.Active: boolean = false

Whether the constraint is currently active in the physics simulation.

ApplyAtCenterOfMass

VectorForce.ApplyAtCenterOfMass: boolean = false

Whether force is applied at the assembly's center of mass to avoid additional torque.

Attachment0

VectorForce.Attachment0: Attachment? = nil

The first attachment used by the constraint or effect.

Attachment1

VectorForce.Attachment1: Attachment? = nil

The second attachment used by the constraint or effect.

Color

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

The color of the constraint visualization.

Enabled

VectorForce.Enabled: boolean = true

Whether the physics solver processes this constraint.

Force

VectorForce.Force: Vector3 = Vector3.new(0, 0, 0)

The force vector applied by the actuator.

RelativeTo

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

Visible

VectorForce.Visible: boolean = false

Whether the constraint visualization is displayed.

Methods

GetExecutionGroup

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