Page 1 of 1

DetectorVolume Position

Posted: Fri Mar 02, 2012 10:03 pm
by Pavi
Hi,

I can't find a way to position a DetectorVolume in space other than changing the position of all the Verticies. What am I missing?

regards
Pavi

Re: DetectorVolume Position

Posted: Fri Mar 02, 2012 11:59 pm
by Norbo
The position is defined by by the MeshBoundingBoxTreeData that is passed in. If a StaticMeshData is used in the constructor, the only way to move the object is to change the positions. The TransformableMeshData is used, the transform can be changed. Changing this after construction requires that the DetectorVolume.TriangleMesh.Tree.Refit method is called.

If you plan on moving an object a whole lot, it might be a good idea to just use an Entity which is designed for motion.