All pastes #964561 Raw Edit

Unbenannt

public java v1 · immutable
#964561 ·published 2008-03-31 10:14 UTC
rendered paste body
Quaternion q2 = new Quaternion();q.lookAt(cam.getDirection(), cam.getUp());Matrix3f v = new Matrix3f();q.toRotationMatrix(v);v.setColumn(1, new Vector3f(0,0,0));v.setRow(1, new Vector3f(0,1,0));q2.fromRotationMatrix(v);rootNode.getChild("Player").setLocalRotation(q2);