Proposed change in Terrain Collission tutorial

I wanted to check this up before i change anything.
But shouldn’t camDir’s y be zeroed at the first line in simpleUpdate() in the “Terrain Collision” tutorial https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:terrain_collision ?
As it is now you can run a bit up in the air, somewhat like a jump (unless i did some other stupid thing).

1 Like

Yea it could be changed, as long as there is a good comment in the code as to why it is zeroed so the beginners are not confused.
Feel free to make the change on the wiki and let me know and I will confirm it.
Thanks @emanuel.claesson