Skip to main content

Transform.RotateAround(Vector3 point, Vector3 axis, number angle)

Rotates the transform about axis passing through point in world coordinates by angle degrees.

Parameters:

NameTypeDescription
pointVector3point
axisVector3axis
anglenumberangle

Usage

---@type Transform
local transform;

---@type Vector3
local point;

---@type Vector3
local axis;

---@type number
local angle;


transform.RotateAround(point, axis, angle)