CodeZealot
15-12-2010 12:49:43
Hi everyone,
I've searched the forums extensively to try to find a straighforward solution to the problem below, but haven't found what I need:
In my game I have a controllable character (Sinbad using the SinbadCharacterController from examples), who will shoot objects (Critter bodies) around the game world at enemies. At the moment, I have everything working ok with a flat plane. But I want to put some hilly, interesting terrain into my game. I have tried to use different terrains such as TerrainGroup with SceneGeometry and loading one in from a .cfg file, but as of yet I can't get my objects or player to collide properly with the terrain. Either the collisions don't work at all or the objects land on an invisible terrain high above the visible terrain. I'm using raycasting for my character at the moment too.
Could someone please post a straightforward guide to getting some hilly terrain into my game and making it collidable with my objects?
Thanks in advance for any help.
I've searched the forums extensively to try to find a straighforward solution to the problem below, but haven't found what I need:
In my game I have a controllable character (Sinbad using the SinbadCharacterController from examples), who will shoot objects (Critter bodies) around the game world at enemies. At the moment, I have everything working ok with a flat plane. But I want to put some hilly, interesting terrain into my game. I have tried to use different terrains such as TerrainGroup with SceneGeometry and loading one in from a .cfg file, but as of yet I can't get my objects or player to collide properly with the terrain. Either the collisions don't work at all or the objects land on an invisible terrain high above the visible terrain. I'm using raycasting for my character at the moment too.
Could someone please post a straightforward guide to getting some hilly terrain into my game and making it collidable with my objects?
Thanks in advance for any help.