Staticmesh and Entities
Posted: Tue Jun 21, 2011 9:05 am
Hi Norbo
I am working on an engine for a game I wish to develop. I have been using BEPU for a few months now and it is working very well for handling the physics
It is only now that I am trying to create an engine using an Interface for all physics objects like a Box, Sphere, Capsule etc, that I am coming to trouble. It is setup like; the interface contains a Entity value (which obviously holds the physics object). It also contains properties such as Position, Rotation, Scale, Mass. This interface is working fine for all entities such as the Box, Sphere etc but now that I have come to the StaticMesh and it is not an Entity. My question is, is it possible to hold a StaticMesh within an Entity or am I going to have to redesign the Interface for all physics objects. If that is the case, what value must replace the Entity in the Interface to be able to hold a StaticMesh and a box for example.
Thanks
I am working on an engine for a game I wish to develop. I have been using BEPU for a few months now and it is working very well for handling the physics

Thanks
