Skip to main content

Transform.SetPositionAndRotation(Vector3 position, Quaternion rotation)

Sets the world space position and rotation of the Transform component.

Parameters:

NameTypeDescription
positionVector3position
rotationQuaternionrotation

Usage

---@type Transform
local transform;

---@type Vector3
local position;

---@type Quaternion
local rotation;


transform.SetPositionAndRotation(position, rotation)