Transform.SetPositionAndRotation(Vector3 position, Quaternion rotation)
Sets the world space position and rotation of the Transform component.
Parameters:
Name | Type | Description |
---|---|---|
position | Vector3 | position |
rotation | Quaternion | rotation |
Usage
---@type Transform
local transform;
---@type Vector3
local position;
---@type Quaternion
local rotation;
transform.SetPositionAndRotation(position, rotation)