-
3D orientation script
Hey fellow script-heads,
I’m trying to animate “tracer” bullets between two 3D points and I want to be able to orient the bullet along the path. I can’t use “orient to path” cause there is no path as such – the positional motion is an expression too. I’m therefore trying to do the orientation trig based on the start and end points, but I can’t seem to find anything on the net to help me maths-wise. I’ve tried doing the orientation as 2 separate 2d x/z and x/y calculations but that’s not right. Anyone know the trig for the 3D angles between two 3D points?
Cheers!
sCam