MeshSplitter
From Crumbled World Wiki
Constructor
| function | description |
|---|---|
| MeshSplitter() |
Functions
| return | function | description |
|---|---|---|
| ListSplittedMesh | splitMesh(Mesh meshToSplit) | plit an mesh up into several submeshes. for speed recommend to use soft normals else this function will be very slow. |
| calculateSubMeshMovement(float deltaTime) | used to calculate movement speed of submeshes this can be used when having an animated mesh there different sub meshes has different speed and direction. to use the mesh need to be updated from the split mesh
EX: meshSplitter.splitMesh(pMesh); pMesh->animationUpdate(Core::_deltaTime); meshSplitter.calculateSubMeshMovement(Core::_deltaTime); | |
| compileSubMeshes() | compile the subMesh with new origo. |