Public Member Functions | |
Mesh (irr::scene::IMesh *mesh, irr::scene::ISceneNode *node, btScalar mass, bool concave=false) | |
ctor | |
Mesh (irr::scene::IMeshBuffer *meshbuffer, irr::scene::ISceneNode *node, btScalar mass, bool concave=false) | |
ctor |
This class, contrary to SharedMesh, performs a deep copy of the mesh data which has the following side effects :
It is however useful in some case when some object (eg terrain) don't use a mesh internally but can generate one on demand.
Mesh::Mesh | ( | irr::scene::IMesh * | mesh, | |
irr::scene::ISceneNode * | node, | |||
btScalar | mass, | |||
bool | concave = false | |||
) |
ctor
mesh | Mesh data | |
node | Attached scene node | |
mass | Mass of the object | |
concave | whether to create a concave shape |
Concave shapes should never be used for (even potentially) moving objects.
References Object::init().
Mesh::Mesh | ( | irr::scene::IMeshBuffer * | meshbuffer, | |
irr::scene::ISceneNode * | node, | |||
btScalar | mass, | |||
bool | concave = false | |||
) |
ctor
meshbuffer | Mesh data | |
node | Attached scene node | |
mass | Mass of the object | |
concave | whether to create a concave shape |
Concave shapes should never be used for (even potentially) moving objects.
References Object::init().