Game Development Community

Keep-out areas in open terrain

by Ray Depew · in Torque Game Engine · 09/16/2004 (7:25 pm) · 4 replies

In building my ski game, I need to have a way to keep the skiers on the runs and out of the trees (and avalanche areas, I guess).

In a perfectly flat terrain, I could create huge boxes, and make the walls into billboards with trees on them, like in Nintendo's "Goldeneye" game. However, this is a sloping terrain (that's the whole point of it!) and it's harder to build a huge box that goes on a slope.

What I'm looking for is a fence or some other boundary that cannot be crossed. Ideally, a skier who collided with the boundary would fall, just like a skier who skis into the trees on a real slope will fall.

And I need to string this boundary up EVERYWHERE, so it has to be low poly count.

Ideas?

#1
09/16/2004 (7:47 pm)
Why not use a fence? Make a small long rectangle in milkshape or something, add a fence texture to it. Then just place them all over the ski hill so that players collide with them. Another thought would be to make snowbanks that you do the same thing with. Depending on how real you want, you could also make a tree line the same way. Then you add collision code that when the player collides with said objects, they fall down.

Sounds kinda fun.
#2
09/16/2004 (8:11 pm)
So I can make a two-dimensional, zero-thickness, shape? That would be ideal.
#3
09/16/2004 (8:19 pm)
Or you can make a triangle with the tip at the top of the fence, and the little wide base at the bottom of the fence. From the end it would look like two fences leaning on each other slightly.
#4
09/16/2004 (10:49 pm)
Ray,

You can use physical zones to achieve this effect. If you need help with these, please follow the EGTGE link below and get a copy of the alpha version of the guide.

[HOW]EdM|EGTGE