jchmack
29-10-2007 20:50:46
it seems that the simplebox constructor is doubling the size of my box.
I was trying to create a 1x1x1 box to test the intersection class again but it seemed to big:
I created a visual representation of the intersection with a 1x1x1 entity.
this seems to yield the results i want.
are the dimensions supposed to be from the center of the Simplebox object or something? Maybe its meant to be this way. I just found it odd.
I was trying to create a 1x1x1 box to test the intersection class again but it seemed to big:
mShape = new SimpleBox(Vector3(1,1,1),CollisionBody->getGlobalPose());
intersection = new Intersection(mScene , mShape , NX_ALL_SHAPES);
I created a visual representation of the intersection with a 1x1x1 entity.
this seems to yield the results i want.
mShape = new SimpleBox(Vector3(.5,.5,.5),CollisionBody->getGlobalPose());
intersection = new Intersection(mScene , mShape , NX_ALL_SHAPES);
are the dimensions supposed to be from the center of the Simplebox object or something? Maybe its meant to be this way. I just found it odd.