I am creating a beam attack that I want to be angled toward a 3d position. I'm not sure how to find the angles to put into the rotation and to my knowledge, there is no "rotate toward 3d position". So, how do I apply 3D rotation toward a 3d coordinate?
Develop games in your browser. Powerful, performant & highly capable.
got it
set euler rotation
rotation-x:0
rotation-y:-(angle(0,Self.Z,distance(Self.X, Self.Y, enemy.X, enemy.Y), enemy.ZElevation+(enemy.Height/2)))
rotation-z: angle(Self.X, Self.Y, enemy.X, enemy.Y)