Game Development Community

Eye/Cam nodes

by Christopher Marg · in Torque Game Engine · 06/03/2008 (4:16 pm) · 0 replies

EDIT: Scratch this. Forgot to set up the exporter again after installing the new version of my modeling software.



I seem to be having some trouble with my eye and cam nodes, or the code I'm using with them.

The model exports with no problems, and the DTS loads without error. However, whenever I use either the eye or cam node (i.e. if I use .getEyeTransform()) it returnes the base of . Now, with the eye node this isn't horribly bad as the object is set to not render when in first-person, but with the third person you can't see anything as you are inside the model - but more importantly the camera just doesn't move.

I'm not sure what to do here. I've used other models and I haven't had this problem before, and the code for generating the player and hooking the camera is the basic code from the FPS Demo.


Edit: Just to note, I am only using the basic camera from TGE. I'll try doing fancy advanced camera stuff later.