bounds

mako

10-04-2007 15:43:58

I've created planes around the screen to bound the space that will be used for the game,
the planes r thin boxes which were created with OgreNewt::CollisionPrimitives::Box

is there a way to create bounds easier? or this is the commom way?

Eldritch

10-04-2007 16:15:57

One way would be to link them all to the same SceneNode and put the TreeParser to parse it as physics geometry. The Ogre SDK comes with a nice sample on how this is done.

walaber

10-04-2007 21:28:52

I usually make a simple mesh object that represents the "room", and create a TreeCollision shape from it, like Eldritch is saying.

mako

11-04-2007 16:06:54

but I need invisible bounds walaber.
thanks anyway.

walaber

11-04-2007 16:20:36

you can always destroy the SceneNode + Entity after you create the OgreNewt::Body from it.

I do that quite often myself.

mako

12-04-2007 21:20:19

good idea =)