DetectorVolume Position

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Pavi
Posts: 12
Joined: Wed Feb 22, 2012 12:08 am

DetectorVolume Position

Post 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
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: DetectorVolume Position

Post 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.
Post Reply