Forum

Rotate Target Camera

03 May 2016 17:28
Hi @ll,

when setting the camera with:
var phi_is_abs = true;
var theta_is_abs = true;
m_cam.rotate_target_camera(camObj, phi, theta, phi_is_abs, theta_is_abs);
it requires a mouse-drag on the canvas before the new phi and theta show effect.

Is there a method to trigger a camera update via code?
@ Emotional3D
04 May 2016 10:50
Hi!

it requires a mouse-drag on the canvas before the new phi and theta show effect
It's strange. The method should work as expected. I couldn't reproduce this with a simple scene. Can you attach an example, where this happens?
 
Please register or log in to leave a reply.