Game Development Community

Walking on Water

by Harvey Greensall · in Torque Game Engine · 01/24/2006 (10:56 am) · 3 replies

Hey guys, having great fun messing with the engine. Just started getting into adjusting datablocks (I'm an artist so it's all a bit trial and error for me at the moment)

I've got my character to float on water instead of walking on the bottom, but he won't move now obviously as his feet dont touch the ground anymore.....Any idea how I can get round this? Can I use things from vehicle datablocks on a character for example? Like give a character thrust characteristics etc. while on water?? and if so, any idea how and where I should add them?

Be interested in what you have to say.

Harvey

#1
02/11/2006 (4:49 am)
Harvey,

You might want to check into the jet pack resources to get you moving in water. Even if they don't provide an exact solution, they might get you headed in the right direction.

And you might consider another option. One method would be to spawn a solid object (with a flat collision mesh) for the player to stand/walk on. If you give the object a lifetime and some delete instructions -- that might work. And you might want to look into the splash generating code to see how it tests for player/water collisions and spawns the particles. I did something similar in another engine several years ago and the walking on water/walking on air effect was pretty cool.

I hope this helps,

Aaron E.
#2
02/13/2006 (7:47 am)
Hey, thanks Aaron, I'll have a good look into this and let you know how I get on.
#3
02/15/2006 (12:26 pm)
Cool. I'll be interested to see what you come up with. Although I don't need anything like that for my current project, it might come in handy one day.