Skip to main content

BodyPosition

Inherits from Instance

BodyPosition are objects that apply a force to their parent until it moves toward the target position.


Summary

Properties


Properties

AcceptanceDistance

BodyPosition.AcceptanceDistance: float

Determines how close the body has to be to the target position to stop applying forces to it.

Example

bodyPosition.AcceptanceDistance = 5

Force

BodyPosition.Force: float

Determines how much force the body applies.

Example

bodyPosition.Force = 100

TargetPosition

BodyPosition.TargetPosition: Vector3

Determines the target position that the body applies forces to get to.

Example

bodyPosition.TargetPosition = Vector3.New(0, 50, 0)