I have an TransformGroup to which I give a BoundingSphere. In the game, the TransformGroup moves and rotates. I used setShowBounds on it and the bounding sphere I see doesn’t really move with it. First of all, I should say that it doesn’t matter what radius I specify the bounds (even 0), it starts out huge. Whenever the transformgroup rotates the boundingsphere moves up and down (or increases in size). Also, as the transform group moves along the negative z axis, the bounding sphere moves down (goes up the Y axis), or reduces in size.
Setting the bounds center and radius to the coordinates of the TG whenever it moves changes nothing, it still behaves the same way. And so the way it looks is that though the sphere moves, it doesn’t move the with the TG.
I think this may be a bug in Xith? In my coordinate system I have the netagive Y axis as up (out of the screen), the positive Z axis as … up (towards the top of the screen), and the positive X axis as right. (The view is looking down at the XZ plane with the positive Z axis as up).
What’s going on? I’m probably not doing something correctly…
Edit: BTW, the view moves with the TG, I think this could be causing the problem for some reason.
Edit: Ok, when adding bounds to some stationary objects they too are weird. They are stationary “with the view”. So as the view moves with the TG, the stationary bounds show up only when the actual objects are in the vicinity, and they move only with the view, they don’t stay in their place in space.
