Hello,
If you have a model instance, you can position the instance directly with:
To initialize a Transform object, you can do as follow:
For centering the model, there is two way, either get the bounding box like this:
and use the box position to move the model or instance.
Or you can use the utility:
For your question about the generic interface IBoundingVolume<?>, the type returned by getBoundingVolume methods is of the type of the volume requested.
Meaning, Box.BoundingBox_AABB_Visible request a box so you can safely cast the result to a Box (which extends IBoundingVolume<Box>). Similarly with sphere, cylinder and capsule volume.
Ps: I've edited you post to use code tag and replaced BoundingBox (1.2.8 ) to Box (1.3.1).