Since the camera was changed so that the Head is no longer the Focus, I’ve turned to using CameraOffset. Which works… until I start changing it dynamically. I’ve found that it simply doesn’t update when you set it. It seems like it sets the property, and then there is some other thing running that actually changes the camera later on. This causes desynchronization with RenderStepped, and simply makes it impossible to work with.
So please either make it actually change the camera when you change the property, or let us instead just use the Head as the focus again. Or if there’s a better solution to dynamically position your camera in first person, I would love to hear it.
Are you editing the CameraOffset dynamically in the RenderStepped?
If so, that would be your problem. The camera is updated before your RenderStepped runs (That’s the function of the RenderStepped event, to give your code a sort of “last say” before the actual render happens), so if you edit the CameraOffset during the RenderStepped the camera won’t be respecting that change until the next frame.
If you want to ensure that the Camera is definitely updated correctly then you can always fudge the Camera.CoordinateFrame yourself when updating the CameraOffset. (Calculate the offset of the camera from the focus before the change and apply it after the change so that the offset stays the same).
[quote] Are you editing the CameraOffset dynamically in the RenderStepped?
If so, that would be your problem. The camera is updated before your RenderStepped runs (That’s the function of the RenderStepped event, to give your code a sort of “last say” before the actual render happens), so if you edit the CameraOffset during the RenderStepped the camera won’t be respecting that change until the next frame.
If you want to ensure that the Camera is definitely updated correctly then you can always fudge the Camera.CoordinateFrame yourself when updating the CameraOffset. (Calculate the offset of the camera from the focus before the change and apply it after the change so that the offset stays the same). [/quote]
this should be on the wiki if it isnt already
Oh my… I was under the impression that you couldn’t change the camera while in first person (I’ve had bad experiences with this in the past). Now I just tested doing that and just discarding CameraOffset altogether, and it works perfectly, both in solo and online. Haha, roblox you so silly…