Align camera perpendicular to an object

Started by julycamara, August 11, 2014, 10:45:38 AM

Previous topic - Next topic

julycamara

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.

EgonOlsen

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.