Distorted collision shapes...

Nogitsune

26-02-2008 09:39:34

My collision shapes are completely distorted... :shock:

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 :?:

Nogitsune

26-02-2008 16:34:21

It appears that it is not only the visualisation of the collision shapes as they do not beahve normally either...

I am using the version of OgreNewt that can be downloaded from Walabers page, the newest Ogre SDK, newest Newton and VC 2008 Express Edition..

Is there noone that have seen this error before or know what it could be caused by?