Game Development Community

Water, Tides and Collisions with TGB?

by Chris · in Torque Game Builder · 05/05/2009 (7:38 pm) · 1 replies

Has anyone done any work with an ocean scene/tides with TGB? I'm looking to set up a demo with water coming up a beach and have some sort of collision detection when the incoming wave hits an object on the beach.

I found some water animations in the Adventure kit and those could probably be used, but I don't believe you can tie a collision to an animation.

Any thoughts?

Thanks!

#1
05/06/2009 (7:20 pm)
Well, I've got the basics of the tide coming in/out scripted. I just put a dummy graphic in for the wave front. Though because I can't set up concave polygons on the wave front, I'm stuck with a straight line across the entire wave front.

Since it's one large wave front, I don't think I can handle collisions gracefully. The entire wave will stop if it hits an object, where in reality the wave should wrap around to the right/left of the object.

I guess I could set up a ton of 'wave front' objects, but I think that'll get too complicated.

Anyone worked with collisions like this?