Home
last modified time | relevance | path

Searched refs:newDirection (Results 1 – 1 of 1) sorted by relevance

/external/jmonkeyengine/engine/src/core/com/jme3/renderer/
DCamera.java815 Vector3f newDirection = vars.vect1; in lookAt() local
819 newDirection.set(pos).subtractLocal(location).normalizeLocal(); in lookAt()
826 newLeft.set(newUp).crossLocal(newDirection).normalizeLocal(); in lookAt()
828 if (newDirection.x != 0) { in lookAt()
829 newLeft.set(newDirection.y, -newDirection.x, 0f); in lookAt()
831 newLeft.set(0f, newDirection.z, -newDirection.y); in lookAt()
835 newUp.set(newDirection).crossLocal(newLeft).normalizeLocal(); in lookAt()
837 this.rotation.fromAxes(newLeft, newUp, newDirection); in lookAt()