Public Member Functions | |
SharedMesh (irr::scene::IMesh *mesh, irr::scene::ISceneNode *node, btScalar mass, bool concave=false) | |
ctor |
The purpose of this class is double :
This class works with both "classic" meshes and skinned meshes.
SharedMesh and Mesh are almost identical in term of interface but SharedMesh should be used whenever possible to reduce the memory footprint and ensure more accurate physics.
SharedMesh::SharedMesh | ( | 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 |
References Object::init().