Rotate the point around the Y axis||doc136031

September 20, 2022


 Lib.posAroundYaw(pos, rotationYaw) 
  • The class to which the function belongs:Lib


Returns the coordinate position after the coordinate is rotated around the Y axis relative to the origin.


Variable name type Description
pos Vector3 coordinate
rotationYaw float Rotation angle

Value Returned

type Description
Vector3 Coordinates after rotation

Code Samples

local pos = Lib.posAroundYaw(Lib.v3(1,0,0), 90)