fatcoder2
16-02-2010 01:52:53
In my project, the water level can raise or lower, so I need to be able to change the water plane height (y axis) each frame.
I have tried using setPosition each frame to pass in a different y value, however doing this causes the entire water plane to centre around the origin (0,0) and it stays there unless the camera is moving. I have tried passing in the water plane's current x,z position along with my new y position, but this makes no difference. If I move the camera around, then it looks good. But as soon as I stop the camera moving, the water plane goes back to the origin (usually disappearing off screen). This behaviour only happens when trying to call setPosition each frame. Is this a bug in Hydrax or am I just doing something wrong?
I have tried using setPosition each frame to pass in a different y value, however doing this causes the entire water plane to centre around the origin (0,0) and it stays there unless the camera is moving. I have tried passing in the water plane's current x,z position along with my new y position, but this makes no difference. If I move the camera around, then it looks good. But as soon as I stop the camera moving, the water plane goes back to the origin (usually disappearing off screen). This behaviour only happens when trying to call setPosition each frame. Is this a bug in Hydrax or am I just doing something wrong?