mrdoob/three.js — Issue #1077: Model alignment
Author: kor86
Created: 2012-01-11 21:24:45+00:00
State: open

Hi,

is there a command to align a .js or .dae model?
I have made an aircraft moving along with trackball controlls. But now I´ve got the problem that the aircraft is flying headfirst or with the rear first.
I found an example (misc_lookat.html) where the geometry is following an sphere looking every time into the right position.

Was this made with the command

applyMatrix( new THREE.Matrix4().setRotationFromEuler( new THREE.Vector3( Math.PI / 2, Math.PI, 0 ) ) );

?

Is there a possibility to use that with an .dae ( Collada Model ) looking at an ray where the aircraft should move along?

Thanks
and best regards.