jPCT-AE - a 3d engine for Android > Support

How to set UpVector of camera?

(1/2) > >>

jumong:
hi,
I am developing simple program using camera, but here, I don't know how to set UpVector of camera
Help!!!

raft:
is this what you are looking for ?
Camera.setOrientation(direction, upVector)

jumong:
thank you for your help
In this function, what is meaning of direction, I don't know well...
It seems  simpleVector of lookAt function?

raft:
it's the direction the camera should look into. you can place camera in infinite ways looking into same direction. upVector picks an orientation among these where up direction in camera space is the given upVector.

jumong:
I did like follow
camera.setOrientation(vecCameraTarget, new SimpleVector(0,0,1));

then, all Object in screen disappeared
What am I doing wrong?

Navigation

[0] Message Index

[#] Next page

Go to full version