DEPT47 GAMES

Devlog / No. 24

Keeping the camera out of bodies

No. 24Oct 10 – 12

GameplayTECH

Oct 10–12Sometime in this period

During the tug-of-war with the stage boss, the camera was ending up inside the boss’s body, making it look see-through. Reeling in fully shortens the line to 1.1 m, but the boss is over 5 m long, and every time it ran or turned, its head, tail and fins swept right through the camera. On Oct 10 I made the game check the gap between the boss’s body and the camera every frame, and push the boss away if it gets too close.

The same thing was happening with other fish, turtles and stingrays, so on Oct 11 I fixed them all together. The camera is pushed out from body surfaces, and small fish and schools move out of the way themselves. The stage boss’s ram now stops where it hits, and the Great Scorpionfish’s lunge stops just short of your eyes. I wrote a test covering 50 situations: before the fix the camera got inside in 21 of them, after the fix in none. It reached the main branch on Oct 12.

▶ Play the beta in your browser

Back to top