So I’m pretty bad at math, and I’ve been struggling with this question for a while.
How would I rotate a vector3 on an arbitrary plane/surface given the angle of rotation and the surface normal?
Something like this
function rotateOnArbitraryAxis(toRotate : Vector3, surfaceNormal : Vector3, angleOfRotation : Number)
-- code I'm struggling to produce
-- returns rotated vector3.
end
I couldn’t find an easy solution to my problem in the documentation or forums and I’ve been scrolling through math wikis but I’m struggling
Please Advise ![]()