Swimming underwater or underwater action possible?
by Antonios Dimitrelis · in Torque Game Engine · 11/12/2007 (3:11 am) · 6 replies
Hello everybody! :)
As the title of this thread already says, I would like to know if anyone ever tried such a thing out with Torque and if yes if it was successfull. Of course a bit information about the coding would be greatly appreciated as well. :)
What I would like to do woul be having a character swim over and under the water.
At the moment all I can see is that the orc in the demo is just walking mostly underwater while the water itself looks only as a piece of texture over it's head.
This looks totally unrealistic and there is not even a small wave or anything similar there caused by the character. Can we change all that or any of those things to make it look better?
Thanks in advance! :)
As the title of this thread already says, I would like to know if anyone ever tried such a thing out with Torque and if yes if it was successfull. Of course a bit information about the coding would be greatly appreciated as well. :)
What I would like to do woul be having a character swim over and under the water.
At the moment all I can see is that the orc in the demo is just walking mostly underwater while the water itself looks only as a piece of texture over it's head.
This looks totally unrealistic and there is not even a small wave or anything similar there caused by the character. Can we change all that or any of those things to make it look better?
Thanks in advance! :)
#2
I searched for water scripts / resources. <_<
I'll check those immediately. :)
11/12/2007 (4:17 am)
X_x thanks a lot and sorry. :(I searched for water scripts / resources. <_<
I'll check those immediately. :)
#3
11/12/2007 (4:18 am)
Heh, that's funny, I just updated that literally 5 minutes ago (the first one). Uses the swim vector calculations from Matt Fairfax's old flying player resource and should support moveUp/moveDown (move->z) now.
#4
BTW: does this work underwater as well or is it meant to be over the water only?
I guess it will work depending on the movement direction you mentioned like if you push down it will move into the water and up will come up again but not sure if my thinking is right. ^^
11/12/2007 (4:21 am)
Oh cool. :)BTW: does this work underwater as well or is it meant to be over the water only?
I guess it will work depending on the movement direction you mentioned like if you push down it will move into the water and up will come up again but not sure if my thinking is right. ^^
#5
By the way, if you find that you can fall out the "bottom" of the water, you need a higher Z-scale on your waterblock.
11/12/2007 (4:30 am)
Yeah, that's basically it. You'll swim down if you look down, and up if you look up. It's the same type of swimming you see in Quake-type games like Half-Life. You can also bind keys to move up and move down, which will let you swim up or down while looking in any direction. I think with everything at defaults, you'll sink very slowly while just floating in the water, but you can always adjust density to change this behavior. By the way, if you find that you can fall out the "bottom" of the water, you need a higher Z-scale on your waterblock.
#6
11/12/2007 (8:43 am)
Thanks a lot, I'll keep that in mind! :)
Associate Andy Hawkins
DrewFX
Swimming in one step
Addiing new positions