Navigation


RSS : Articles / Comments


Papervision 3D lookAt Method

5:02 PM, Posted by Jim Foley, 3 Comments

The lookAt method does exactly what it says it does. It looks at an object. You can assign one object to look at and face the direction of another object, or you can assign the camera to lookAt a particular object, etc...

//Usage...
myCamera.lookAt(myOtherObject);

Example: click here
Flex Source: click here
Flash Source: click here

3 Comments

Seb @ October 30, 2008 1:43 AM

Thats definitely my favourite method in papervision, hurray for it! :D

Simon @ December 23, 2008 1:10 AM

Hi there, thanks for the great demo. Question: How do you use the upAxis property for the lookAt constructor?

Jim Foley @ December 28, 2008 11:36 PM

Simon, Sorry I'm not sure myself.