Open Asterune
LineForce

LineForce

Applies force along the line between two attachments.

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

Behavior

LineForce applies force along the line between two attachments.

Summary

Members11
Properties10
Methods1

Properties

Active

LineForce.Active: boolean = false

Whether the constraint is currently active in the physics simulation.

ApplyAtCenterOfMass

LineForce.ApplyAtCenterOfMass: boolean = false

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

Attachment0

LineForce.Attachment0: Attachment? = nil

The first attachment used by the constraint or effect.

Attachment1

LineForce.Attachment1: Attachment? = nil

The second attachment used by the constraint or effect.

Color

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

The color of the constraint visualization.

Enabled

LineForce.Enabled: boolean = true

Whether the physics solver processes this constraint.

InverseSquareLaw

LineForce.InverseSquareLaw: boolean = false

Whether force magnitude decreases with the square of attachment distance.

Magnitude

LineForce.Magnitude: number = 0

The magnitude of force applied along the attachment line.

MaxForce

LineForce.MaxForce: number = inf

The maximum force the actuator can apply.

Visible

LineForce.Visible: boolean = false

Whether the constraint visualization is displayed.

Methods

GetExecutionGroup

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