B
boowee
Guest
Hi,
I am new to GM and am currently trying to figure out how to rotate the camera using the new camera system. Basically what I am trying to do is having the camera to rotate based on the player angle/rotation. Using the "old" views I guess I would do this by setting the view_angle to be the same as the image_angle of the player object.
However, with the new camera system it seems the only way to rotate the camera would be defining what the "up" vector is in the lookat matrix. My question then is how to change this dynamically to match the player object?
I hope this make sense.
I am new to GM and am currently trying to figure out how to rotate the camera using the new camera system. Basically what I am trying to do is having the camera to rotate based on the player angle/rotation. Using the "old" views I guess I would do this by setting the view_angle to be the same as the image_angle of the player object.
However, with the new camera system it seems the only way to rotate the camera would be defining what the "up" vector is in the lookat matrix. My question then is how to change this dynamically to match the player object?
I hope this make sense.