mesh_02
UnigineScript is deprecated and will be removed in future releases. Please consider using C#/C++ instead, as these APIs are the preferred ones. Availability of new Engine features in UnigineScipt is not guaranteed, as the current level of support assumes only fixing critical issues.
This article describes the data/samples/objects/mesh_02.cpp sample.
The mesh_02 sample demonstrates how to deform a static mesh as a dynamic mesh, namely:
- Load the static mesh from a given file and copy it to the dynamic mesh by using the setMesh() function
- Deform vertices of the dynamic mesh
- Add the deformed dynamic mesh as the static mesh to the editor
49 dynamic ObjectMeshes
The static mesh used in this sample is stored in the samples/objects/meshes/mesh_02.mesh file.
See Also#
- Article on Static Mesh
- Article on Dynamic Mesh
- Functions of the ObjectMeshStatic class
- Functions of the ObjectMeshDynamic class
Last update:
2020-04-10
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)