BodyPosition¶
BodyPosition are objects that apply a force to their parent until it moves toward the target position.
Inherits Instance
Properties¶
AcceptableDistance : number
¶
Determines how close the body has to be to the target position to stop applying forces to it.
Example
bodyPosition.AcceptanceDistance = 5
Force : number
¶
Determines how much force the body applies.
Example
bodyPosition.Force = 100
TargetPosition : Vector3¶
Determines the target position that the body applies forces to get to.
Example
bodyPosition.TargetPosition = Vector3.New(0, 50, 0)