Game Development Community

Fluid class, help please.

by Sam Guffey · in Torque Game Engine · 07/13/2005 (9:43 pm) · 3 replies

Im looking for the height of the fluid on a waterblock. The WaterBlock class has a 'SurfaceZ' which lets me get the height of the water 'box'. The fluid is what accually moves up and down based on WaveMagnitude which is what I need.

#1
07/14/2005 (12:20 am)
I believe there's a function to get the waterheight at a position.
#2
07/14/2005 (4:07 pm)
Yeah there is but it returns the waterBlocks height not the fluid that moves in sine (wave height).
#3
07/14/2005 (5:25 pm)
No, I'm pretty sure there's a function for the latter case - it's how the geometry is generated for rendering! You might have to transfer in/out of waterblock space, though.