i think there is a typo bellow, it should be ct3d.invert() instead of tg.invert()
Cheers, Florin -----Original Message----- From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED] Behalf Of Nikolai V. Chr. Sent: Montag, 26. April 2004 16:48 To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] How to move a camera in the virtual universe using keyboard? Andy wrote: > The second question I wanna ask is that how do I use lookAt()? You must call invert() like this: ct3d.lookAt(new Point3d(0, 0, 5f), new Point3d(0, 0, 0), new Vector3d(0, -1, 0)); tg.invert(); tg.setTransform(ct3d); Btw. Are you sure -Y is upwards in your universe? Seem to be an unusual asumption. Hope that helps Nikolai ---------------------------------------------- Nikolai V. Christensen, Computer Engineer, Simulation and Training department IFAD, Forskerparken 10A, DK-5230 Odense M Denmark, EU Phone: +45 63 15 71 31 Fax: +45 65 93 29 99 WWWeb: http://www.ifad.dk e-mail: [EMAIL PROTECTED] ---------------------------------------------- =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
