New issue, the objects seem to center to 0,0,0 when I add the returned SV.
float fTest = 25f;
SimpleVector vcoll = null;
//vcoll = obj3D.checkForCollisionSpherical(svPos, 5f);
vcoll = obj3D.checkForCollisionEllipsoid(svPos, new SimpleVector(fTest,fTest,fTest), 1);
// Was there a collision?
if(vcoll.equals(svPos)==false)
{
svPos.add(vcoll);
Global.Debug("COLLISION");
svMomentum.y = -50;
//svMomentum.y = -svMomentum.y;
}
else
{
svPos.set(vcoll);
}
The objects are simply moving vertically to a floor with no X and Z movement.. trying to figure out why the X and Z translation is centering to 0,0,0