Game Development Community

My Water Is Too Bouncy

by Sean Brockest · in Torque Game Engine · 02/07/2007 (7:02 am) · 6 replies

I FINALLY got my water to work, and have it placed in the hole it needs to be in, but now i cant swim in it. The water is bouncy, literally. Ever seen the myth busters episode where they do "Quicksand"? Jamie was just bouncing on the surface, unable to really sink, due to huge boyancy. That's what i've got. It also means i cannot swim in it, i just cannot propell myself around.

Here's what my water looks like

new WaterBlock(MyWater) {
position = "-72 -280 25";
rotation = "1 0 0 0";
scale = "224 224 1";
UseDepthMask = "0";
surfaceTexture = "~/data/water/water.png";
ShoreTexture = "~/data/water/water.png";
envMapOverTexture = "~/data/water/water.png";
envMapUnderTexture = "~/data/water/water.png";
specularMaskTex = "~/data/water/water.png";
liquidType = "OceanWater";
density = "3";
viscosity = "15";
waveMagnitude = "1";
surfaceOpacity = "0.75";
envMapIntensity = "0.4";
TessSurface = "50";
TessShore = "60";
SurfaceParallax = "0.5";
FlowAngle = "0";
FlowRate = "0";
DistortGridScale = "0.1";
DistortMag = "0.05";
DistortTime = "0.5";
ShoreDepth = "20";
DepthGradient = "4";
MinAlpha = "0.03";
MaxAlpha = "1";
tile = "1";
removeWetEdges = "0";
specularColor = "1 1 1 1";
specularPower = "5";
params3 = "1.21 -0.61 0.13 -0.33";
Extent = "100 100 10";
floodFill = "1";
params1 = "0.63 -2.41 0.33 0.21";
params0 = "0.32 -0.67 0.066 0.5";
params2 = "0.39 0.39 0.2 0.133";
envMapTexture = "~/data/skies/sunset_0007";
textureSize = "32 32";
seedPoints = "0 0 1 0 1 1 0 1";
};

#1
02/07/2007 (7:12 am)
Give the water some Z scale, just enough to hit the floor of your body of water.
#2
02/07/2007 (7:20 am)
That changed the way the bounciness worked, but now i cant even get wet, it's like there's an anti-grav field over my water :)
#3
02/07/2007 (8:00 am)
How about you mess around with the density property in your player datablock?
#4
02/07/2007 (8:26 am)
If either of you have a mission where you've got some "normal" water, could you post me it's block? i'm having no luck. I checked 3DGPAI1 and the advanced book, and neither has a section on water.
#5
02/07/2007 (8:29 am)
Why don't you have a look at the Starter.FPS level? The water there is definitely not bouncy.
#6
02/07/2007 (8:32 am)
Ahh, good call, forgot that one had water.

the on in tutorial.base was crappy, so i had stopped looking at the included modules.