Water density?
by deepscratch · in Torque Game Engine Advanced · 11/26/2008 (10:35 am) · 6 replies
Hi all,
a simple question that I could not find a positive answer for.
does TGEA water support density? and if so, how do I get it working?
thanks
a simple question that I could not find a positive answer for.
does TGEA water support density? and if so, how do I get it working?
thanks
About the author
email me at medan121@gmail.com
Recent Threads
#2
11/26/2008 (11:33 am)
Actually its called clarity and visibledepth
#3
11/26/2008 (12:43 pm)
It seems to me that water density is disabled in TGEA. You might have to add a field for it in initPersist, pack/unpack, and modify the player's updateContainer to take it into consideration.
#4
thanks for your reply, how would I go about adding that field? could I copy/paste from TGE? (I got the upgrade to TGEA, so I have the TGE sdk) or would I have to write it from scratch?
11/26/2008 (1:10 pm)
@James,thanks for your reply, how would I go about adding that field? could I copy/paste from TGE? (I got the upgrade to TGEA, so I have the TGE sdk) or would I have to write it from scratch?
#5
11/26/2008 (2:21 pm)
Wait, they broke density? this just seems like a nobrainer to have in and fixed... i mean, all the focus on making look pretty, and it cant act like water.. floating objects and swimming as a standard might be a nice thing to also include in TGEa just as a note.
#6
Probably doing some file comparisons between TGEA/TGE would be a good idea, like for waterBlock, player, shapeBase.
The ShapeBase::updateContainer function is an important one.
There will be improvements to this in TGEA's future...
11/26/2008 (3:30 pm)
I don't have a stock version of TGEA on me at the moment, but from what I remember it looked like buoyancy in water and player movement while within it, was completely disabled in stock TGEA.Probably doing some file comparisons between TGEA/TGE would be a good idea, like for waterBlock, player, shapeBase.
The ShapeBase::updateContainer function is an important one.
There will be improvements to this in TGEA's future...
Torque Owner Timothy Castagna
TK Games LLC