Skip to main content

Rigidbody.MovePosition(Vector3 position)

Moves the kinematic Rigidbody towards position.

Parameters:

NameTypeDescription
positionVector3Provides the new position for the Rigidbody object.

Usage

---@type Rigidbody
local rigidbody;

---@type Vector3
local position;


rigidbody.MovePosition(position)