Game Development Community

waterblock parameters

by Desmond Fletcher · in Torque Game Engine · 01/23/2002 (8:24 pm) · 0 replies

I suspect these waterblock parameters have been stripped out of the engine code; anyone know for sure? I can't find them anywhere (except for perhaps floodFill) but they are in objectBuilderGui.gui. Taking them out of a mission file seems to have no effect.

params1 = "0.63 -2.41 0.33 0.21";
extent = "100 100 10";
params2 = "0.39 0.39 0.2 0.133";
floodFill = "1";
params3 = "1.21 -0.61 0.13 -0.33";
seedPoints = "0 0 1 0 1 1 0 1";
textureSize = "32 32";
params0 = "0.32 -0.67 0.066 0.5";

Also, in fluidQuadTree.cc (SetupVert), the wave action is created apparently by the surface height, a sin function and a wave multiplier:

Delta = SINE( (X * 0.05f) + m_Seconds ) +
SINE( (Y * 0.05f) + m_Seconds );

Z = m_SurfaceZ + Delta * m_WaveFactor;