1: I Load a Model
2: I Use the Objects SIZEs (x,y,z) to make a bounding box
3: I position this bounding box with Object Position + Collision Center Values. Its PERFECT. (My Bounding Box totally Surrounds my Object PERFECT)
4: I Constantly Reposition the Bounding Box the same way each Loop - It PERFECT "encloses" My Object - a Rigid body inside.
5: I slam the object with a force - Now the same code that put the bounding box around the object - seems flawed! Its as if the Object Position Functions (Or Collision Center functions) MISREPORT once an object has forces on it.
Anyone know what is going on? This is critical for pixel Perfect Frustrum Culling as Well as Accurate LOD (low res model Positioning)
Attached is a split pic - On the Left - before I Bang into Object - the other After I "Ram" the object.
Positioning Of Bounding Box Code
//Moveable
float LTestX=p_CNode->Obj->PositionX_Get()+p_CNode->Center->X;
float LTestY=p_CNode->Obj->PositionY_Get()+p_CNode->Center->Y;
float LTestZ=p_CNode->Obj->PositionZ_Get()+p_CNode->Center->Z;
p_CNode->Box->Position(LTestX, LTestY, LTestZ);
float LTestXA=p_CNode->Obj->AngleX_Get();
float LTestYA=p_CNode->Obj->AngleY_Get();
float LTestZA=p_CNode->Obj->AngleZ_Get();
p_CNode->Box->Rotate(LTestXA, LTestYA, LTestZA);
Note My Initial Tests Show Far show that Collision Center Values Dont Change. Needed to State That as you may notice in code those Collision Center x,y,z VALUES are from a stored location.
Ok the Pic is attached - Any help greatly appreciated
[edit] Note: I've Tried Putting the Code that positions the Bounding Box - Before and After the PhysUpdate in the main loop - didn't make a difference to my Chagrin.