-
-
Notifications
You must be signed in to change notification settings - Fork 31
View bobbing #130
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Activity
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
At the moment the camera is attached directly to the player's position. View bobbing would be implemented by adding some offset calculated from (presumably) the player's velocity and the current time using sine and cosine functions. To confirm this it would be best to look at the decompiled vanilla sources for the specifics.
The best place to implement this would be in
getCameraUniformsat the bottom ofRenderCoordinator.swift. Eventually more of the camera based calculations should be refactored out of RenderCoordinator for neatness, but it's fine to just add it on to the end for now.