Frenzies: Auto body correction
This was an interesting gameplay issue I encountered during my time at Near Light which tested my skills with 3D spacial maths, so I thought I'd discuss it here. The issue So Frenzies, as a multiplayer shooter, needs clear targets for people to shoot. But as a VR game, the game also needs to respect (to some extent) the movement of your head. If you try to move your head forwards, and it doesn't move in VR, it feels really bad (trust me on this), plus Meta doesn't let you put your game on their store. So player's HMD (head mounted display, where in game their head is) must have unconstrained movement, but also we need to make sure their body must follow this. If we didn't have the body follow the head, players would move to a corner, then just take a step round it in the real world, leaving their body safely behind cover but letting them see round - not what we wanted. To give a bit more basis from a technical perspective, the issue here is that there are two po...