www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: julycamara on August 11, 2014, 10:45:38 am

Title: Align camera perpendicular to an object
Post by: julycamara on August 11, 2014, 10:45:38 am
Hello,

I have a "floor" for my scene made of 800 triangles that are doing a big rectangle. Always i are trying to align the camera manually, but i want to know if there is a method for align the camera on 90 degrees over my object and center. is it possible?

Thank you very much.
Title: Re: Align camera perpendicular to an object
Post by: EgonOlsen on August 11, 2014, 08:52:30 pm
There's no method to do this in one step. You could place the camera at the transformed center of the plane, reset it's rotation (Camera.getBack().setIdentity();) and rotate it PI/2 down around X or something like that.