Hello friends,
I have created a scene with a small ball placed on a rectangular floor.
When game starts the scene is viewed along Z axis, exposing thickness of floor.
What I want is to view from the top. How to get this view?
Manish
[java]cam.setLocalTranslation(new Vector3f(0, 10, 10)); //adjust these values accordingly to the size of the floor
cam.lookAt(floor.getLocalTranslation());[/java]
Hi Wezrule, thanks a lot…btw, I did like this
cam.setLocation(new Vector3f(0, 4f, 0));
cam.lookAt(new Vector3f(0,0,0), new Vector3f(0,0,1));
and got the desired results.
Can you please tell whats this with setLocalTranslation(incontext of spatial too). How is it diff from say, move or setLocation?
Manish
oh yeh sorry i wrote that completely wrong :P, haha xD. Well at least you got the idea. Move will move it from its current position. setLocation is only for the camera, i remember @pspeed saying something about why its not also called setLocalTranslation(), but im not sure sorry.