Nogitsune
26-02-2008 09:39:34
My collision shapes are completely distorted...
This is supposed to be a TreeCollision of my plane floor:

Using the code:
This is a convex hull of the same floor:

Most simple primitives cant be seen as there is an assertion that crashes the prgram when F3 is pressed, but this is a cylinder..

Well... obviously something is quite wrong.... I am not certain if it is only in the visualisation of the shapes or if the shapes themselves is messed up..
What can cause this
This is supposed to be a TreeCollision of my plane floor:
Using the code:
Collision* floorCol = new CollisionPrimitives::TreeCollision(mWorld, floorNode, true);
Body* floorBod = new Body(mWorld, floorCol);
delete floorCol;
floorBod->attachToNode(floorNode);
This is a convex hull of the same floor:
Most simple primitives cant be seen as there is an assertion that crashes the prgram when F3 is pressed, but this is a cylinder..
Collision* floorCol = new CollisionPrimitives::Cylinder(mWorld, 100, 200);
Body* floorBod = new Body(mWorld, floorCol);
delete floorCol;
floorBod->attachToNode(floorNode);
Well... obviously something is quite wrong.... I am not certain if it is only in the visualisation of the shapes or if the shapes themselves is messed up..
What can cause this