Open Sandbird opened 11 years ago
Same...
I figured this out a long time ago :) Change accordingly: _camera_objs= nearestObjects [_laptop, ["Loudspeakers_EP1"], CCTV_radius]; ...... ..... _pos1 = [_x - 10 * sin(_dir + CCTV_pan_angle), _y - 10 * cos(_dir + CCTV_pan_angle), _z + 10 * tan(CCTV_tilt_angle)]; _pos2 = [_x - 10 * sin(_dir - CCTV_pan_angle), _y - 10 * cos(_dir - CCTV_pan_angle), _z + 10 * tan(CCTV_tilt_angle)]; ...... ...... _z = (_pos select 2) + 10;
I am using your hint with CCTV_tilt_angle = -30;
Solved, thanks.
Enviado do meu iPhone
Em 13 de nov de 2015, às 07:54, Sandbird notifications@github.com escreveu:
I figured this out a long time ago :) Change accordingly: _camera_objs= nearestObjects [_laptop, ["Loudspeakers_EP1"], CCTV_radius]; ...... ..... _pos1 = [_x - 10 * sin(_dir + CCTV_pan_angle), _y - 10 * cos(_dir + CCTV_pan_angle), _z + 10 * tan(CCTV_tilt_angle)]; _pos2 = [_x - 10 * sin(_dir - CCTV_pan_angle), _y - 10 * cos(_dir - CCTV_pan_angle), _z + 10 * tan(CCTV_tilt_angle)]; ...... ...... _z = (_pos select 2) + 10;
— Reply to this email directly or view it on GitHub.
cause right now, it shows the camera on the ground
Fixed with #2
If i wanted to use Loudspeakers_EP1 (cause it looks like a surround camera system), instead of Loudspeaker....what value do i need to change to 'put' the camera on the top of the object...(cause right now, it shows the camera on the ground)...
Inside function _cam_span_targets you got pos1 and pos2. My guess is that i have to do _y + (a number) * cos(_dir + CCTV_pan_angle) instead of (- minus) ? Or is it _get_pos function ?
_pos = [_x + 0.3 * sin(_dir), _y + 0.3 * cos(_dir), _z];
I am confused. :/
-Thanks