• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - Code Rotating camera




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.