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
Whether the constraint is currently active in the physics simulation.
Whether force is applied at the assembly's center of mass to avoid additional torque.
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.
Whether force magnitude decreases with the square of attachment distance.
The magnitude of force applied along the attachment line.
The maximum force the actuator can apply.
Whether the constraint visualization is displayed.
Returns this instance if it is an ExecutionGroup.
Properties
Active
LineForce.Active: boolean = falseWhether the constraint is currently active in the physics simulation.
ApplyAtCenterOfMass
LineForce.ApplyAtCenterOfMass: boolean = falseWhether force is applied at the assembly's center of mass to avoid additional torque.
Attachment0
LineForce.Attachment0: Attachment? = nilThe first attachment used by the constraint or effect.
Attachment1
LineForce.Attachment1: Attachment? = nilThe 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 = trueWhether the physics solver processes this constraint.
InverseSquareLaw
LineForce.InverseSquareLaw: boolean = falseWhether force magnitude decreases with the square of attachment distance.
Magnitude
LineForce.Magnitude: number = 0The magnitude of force applied along the attachment line.
MaxForce
LineForce.MaxForce: number = infThe maximum force the actuator can apply.
Visible
LineForce.Visible: boolean = falseWhether 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
- 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