BabylonJS/Babylon.js — pull request #129 by professorf (2014-01-19 03:19:26+00:00)
Title: Added Mesh.lookAt

(Note: I actually only request that babylon.mesh.js merged. Not sure how to exclude readme.md & ourOwnBabylon.js).

CHANGES to Babylon.mesh.js

Added method: Mesh.lookAt(BABYLON.Vector3[, yawCorrection, pitchCorrection, rollCorrection])

Typical usage: Mesh.lookAt(targetMesh.position);

This method will orient a mesh to a point by adjusting the mesh's yaw, pitch, and roll. The mesh should be created facing towards the user--because yaw, pitch, and roll are defined with this orientation.