Game Development Community

How to make a boat float on water?

by Steve (All new 2 me) · in Torque Game Engine · 06/24/2004 (1:44 pm) · 29 replies

Hi,

Does anyone know how to make a boat (non-mountable) float on the water? This includes making it bob up and down in the water with the waves.

Also how would I make the particle effects such as waves crashing on the boat and the particles of the water splashing as the boat moves?

Thanks,
Steve

About the author

Recent Threads

Page«First 1 2 Next»
#21
10/11/2005 (9:46 pm)
Maybe either someone makes a great one... Or the torque engine should automaticly come with it a new version...
#22
10/13/2005 (9:18 am)
I think the problem is working out how high the wave is at a certain point and checking if you've collided with it or not.. saying as it's not really a mesh being deformed, but a client side effect.. From what I can determine, the water block is just a rect on the server

I'm sure it's possible to work out the wave height at a specific point as it's just a sine wave. It would involve an engine change though to add this to the collision code and would need synchonising with the server, may be quite a large overhead.

One of the levels on my game is an ocean level.. there's a huge cargo ship cutting through the ocean, I wanted particle effects splashing around where the waves hit. I'm going to have to cheat though as there's no way of knowing where or if the waves have collided with the ships mesh.
#23
10/13/2005 (9:22 am)
Yea at some point I would like to get water with high swells like 6 foot swells. To simulate real offshore conditions.
#24
03/01/2006 (12:07 am)
So has anyone managed to get this working? The watercraft thing is really bad...even when just driving along on the water i seem to get launched into the sky, anyone got any further?
#25
03/02/2006 (5:40 pm)
I did, when i started to create my own boat class.
#26
03/04/2006 (3:05 am)
Are you going to put it in a resource when its done?
#27
03/04/2006 (7:56 am)
I havnt touched the code in over a year. I dont even think i have any of it anymore.
#28
08/16/2007 (9:52 pm)
Im new How do you make water on your area the tutorial says NOTHING
#29
08/16/2007 (10:31 pm)
@William - you need to create a waterblock. in your mission file.
Page«First 1 2 Next»