Right shape for a large platform?

Lykaios

24-05-2008 14:47:01

To all you experienced NxOgre programmers out there:

If I wanted to create a large platform to place other bodies on top of, what would I use?

Basically, what I want is something about the size of Vector3(1000,150,1000).

I'm looking around at the shapes, but I'm having trouble. Thanks for the help!

~Eric

betajaen

24-05-2008 14:53:52

Cube would probably be best, anything else such as a triangle mesh or convex would be over complicated. Shame there isn't a Plane shape with fixed dimensions.

Fred

24-05-2008 15:24:44

But I think that there are cases in which triangleMeshes are necessary. What do you want to do, if your platform is not a cube, but a prism(f.e. hexagonal). Then it is better to use a triangleMesh, because you are able to create meshes with different shapes.

Lykaios

24-05-2008 15:45:07

Basically, To introduce addForce, and easy-to-understand complex shapes, I'm going to create a big body that will be a "floor". Then ogre meshes with either simple or complex shapes will be placed on them.

Then, based on button presses, the floor will shake, knocking the objects around.

Kind of an earthquake thing.

betajaen

24-05-2008 16:31:19

I would use a cube. If you want a prism like Fred said, I would use a Convex, that way you could shake it around.