Explorar el Código

CameraController: Load fov from camera

trethaller hace 6 años
padre
commit
f367c89a1d
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      h3d/scene/CameraController.hx

+ 2 - 0
h3d/scene/CameraController.hx

@@ -76,6 +76,8 @@ class CameraController extends h3d.scene.Object {
 		targetPos.set(r, Math.atan2(pos.y, pos.x), Math.acos(pos.z / r));
 		targetPos.x *= targetOffset.w;
 
+		curOffset.w = scene.camera.fovY;
+
 		if( !animate )
 			toTarget();
 		else