Home > Blockchain >  Get position by having start position, turn and distance
Get position by having start position, turn and distance

Time:10-21

How to get end point (3d) given start position as 3d point, direction as 3d rotation (0-360 in x, y and z) and distance? Values:

local x, y, z = 0,0,0 -- starting position
local rx, ry, rz = 0, 180, 360 -- rotation
local distance = 10 -- distance

local destinationX, destinationY, destinationZ = ... -- endpoint

I know about equation

  • Related