I have an airplane mesh with its tail at (0,0,0) and its nose at (a,b,c). I want to point the nose at (e,f,g) and leave the tail at (0,0,0). No extraneous rotations should be introduced, just the one simple rotation to repoint the plane.
Perhaps another way of saying this: I would like to work with a different coordinate system when calculating the plane's rotations. In my example (e,f,g) would ideally be (1,0,0) so I could more simply calculate some rotations.
This may be more of a pure maths problem, but I'm trying to implement this in three.js and would like to know what is the best series of calls to effect this result.
Aucun commentaire:
Enregistrer un commentaire