Hi, basically in my pool game i’m using the geometry from a ASE file that someone else made, with the pool balls i need to get the center of the ball to set the center of mass 4 my physics calculations so what i do is i get the bounds of the ball, cast to a bounding sphere and get the center from there but in my game loop when i set the translation transform to that center when it isn’t moving, its gets moved to the incorrect place here is snippet of what i’m doing:
//Some where being initialized
TransformGroup tg = (TransformGroup)namedNodes.get("poolball1")
Shape3D visualBall = (Shape3D)b.getChild(0);
bounds = visualBall.getBounds();
Vector3 centerOfGravity = new Vector3f(((BoundingSphere)bounds).getCenter());
///////////////////////////////////////////////////////////
//some where later on in the game loop
Transform3D trans = tg.getTransform();
trans.setTranslation(centerOfGravity);
tg.setTransform(trans);
one ball is placed correctly but the rest stay in the wrong position, i guess ill have to do it the hard way and get the geometry and calculate the center myself?
and thats what i want to use. xith at present just uses samples. and my fmod has loads more effects the openal (no need for hardware for them also).