T
twalkerp
Guest
I'm trying to create mobile camera drag, so once the user zooms in they can drag around the room and view different parts.
It works, but the camera jumps around when dragging, it doesn't feel smooth at all, have to swipe around a bunch to move the camera.
It's like two steps forward one step back.
This is my current code in Global Gesture Drag Start:
This is my current code in Global Gesture Dragging
Thanks!
It works, but the camera jumps around when dragging, it doesn't feel smooth at all, have to swipe around a bunch to move the camera.
It's like two steps forward one step back.
This is my current code in Global Gesture Drag Start:
Code:
drag_room_x = event_data[? "posX"];
drag_room_y = event_data[? "posY"];
Code:
_x = drag_room_x - event_data[? "rawposX"];
_y = drag_room_y - event_data[? "rawposY"];
camera_set_view_pos(cam,_x,_y);