Ralith / hypermine

A hyperbolic voxel game
Apache License 2.0
160 stars 20 forks source link

Move camera to the top of the player's collider #345

Closed Ralith closed 10 months ago

Ralith commented 10 months ago

~This moves the viewpoint before applying orientation, so looking down is equivalent to face-planting, which isn't ideal.~ Adjusting the viewpoint by Graph::get_relative_up after rotation so the camera rotates in-place makes more sense, but suffers from sharp discontinuities when crossing between nodes, presumably due to relying on the discrete NodeState::up_direction. We should come up with a properly smooth notion of "up".