Game Development Community

TGEA 1.7.0 - Waterblock oddness

by Jeremiah Fulbright · in Torque Game Engine Advanced · 06/04/2008 (8:10 pm) · 2 replies

I don't recall having this issue in 1.3, but maybe it just behaved differently.. I am noticing that waterblock is rendering "in the middle" of the Z-scale... So if I have the Height/Z set to 500, the actual water surface is rendered at 250.

This wouldn't be a huge problem except when its set like that, it means the code in shapebase/player classes will detect a player is in the waterblock, because the bounds is obviously way higher than the water surface.

Ultimately, I'd think the best case would be to cause the Water to render at the height of its block, then one could properly scale it down to fit and look good.. This should be looked at, if hasn't already

#1
06/04/2008 (9:35 pm)
Yea the WaterBlock puts the water surface at the center of its bounds and not the top of the block. It can become a little annoying when your trying to scale it, but its not generally that big of an issue IMO.

Changing it shouldn't be very difficult really... but you would break any existing code out there. It would have to be an option if you wanted it to be backwards compatible.
#2
06/04/2008 (10:15 pm)
I looked it over, but I'm still not well versed with its math/matrix math, so couldn't find what I was looking for.