Transform.RotateAround(Vector3 point, Vector3 axis, number angle)
Rotates the transform about axis passing through point in world coordinates by angle degrees.
Parameters:
Name | Type | Description |
---|---|---|
point | Vector3 | point |
axis | Vector3 | axis |
angle | number | angle |
Usage
---@type Transform
local transform;
---@type Vector3
local point;
---@type Vector3
local axis;
---@type number
local angle;
transform.RotateAround(point, axis, angle)