amterp / COMP30019-Project-1

Project 1 for 2018 Semester 2 of COMP30019
1 stars 0 forks source link

Fix water collision #63

Closed amterp closed 6 years ago

amterp commented 6 years ago

The camera can currently go under water due to the waves. The easiest solution may be to set the mesh's flat collider to be of an height >= the amplitude of the waves.

This could be done via moving the collider. Or it could be done via displacing the vertex wave movements further down so they're always below the collision mesh.

amterp commented 6 years ago

Simply tweaked the wave amplitudes and the camera's hit box so that it can never clip the waves. Fixed in #67.