elementarladung

11-05-2007 21:49:10

Hi,

i have two questios to nxOgre and generally Physx.

1) I have two boxes generated with nxOgre

mScene->createBody("cube.mesh", new NxOgre::CubeShape(100,100,100), Vector3(0,30,0), "Mass: 100");

Thyts quit easy. In this sample i will set the collision shape manualle but how do i normally know how big my box or model is ? A better way would be to create a second model wich is a low poly collision model of my rendered model.

mScene->createBody("cube.mesh", new NxOgre::MeshShape("cube_collision.mesh",""), Vector3(0,30,0), "Mass: 100");

In this sample the cube and the collision model are the same file but this sample does'nt work correctly. If i will load more of these bodies they intersect each other. in the first sample not.

What is the correct way to solve these problem ?

2) Is it possible in nxOgre (physx) to create airplanes and how ?

Thx for helping !

i have two questios to nxOgre and generally Physx.

1) I have two boxes generated with nxOgre

mScene->createBody("cube.mesh", new NxOgre::CubeShape(100,100,100), Vector3(0,30,0), "Mass: 100");

Thyts quit easy. In this sample i will set the collision shape manualle but how do i normally know how big my box or model is ? A better way would be to create a second model wich is a low poly collision model of my rendered model.

mScene->createBody("cube.mesh", new NxOgre::MeshShape("cube_collision.mesh",""), Vector3(0,30,0), "Mass: 100");

In this sample the cube and the collision model are the same file but this sample does'nt work correctly. If i will load more of these bodies they intersect each other. in the first sample not.

What is the correct way to solve these problem ?

2) Is it possible in nxOgre (physx) to create airplanes and how ?

Thx for helping !