VectorForce
VectorForce : Constraint
Properties
Force
Vector3
Force is a property that defines the vector force applied between objects.
Code Samples
local Part = script.Parent
local Attachment = Part.Attachment
local VectorForce = Instance.new("VectorForce")
VectorForce.Attachment0 = Attachment
VectorForce.RelativeTo = Enum.ActuatorRelativeTo.World
VectorForce.Force = Vector3.new(500000, 0, 0)
VectorForce.Parent = Part
RelativeTo
Enum.ActuatorRelativeTo
RelativeTo is an enumeration property specifying the reference point for applying vector force raints either to Attachment0 or Attachment1 in a physics raint.
Code Samples
ApplyAtCenterOfMass
bool
Use ApplyAtCenterOfMass to specify whether or not to apply force to the center of mass.
Code Samples
Methods
Events
Last updated