dynamic_05
The scope of applications for UnigineScript is limited to implementing materials-related logic (material expressions, scriptable materials, brush materials). Do not use UnigineScript as a language for application logic, please consider C#/C++ instead, as these APIs are the preferred ones. Availability of new Engine features in UnigineScipt (beyond its scope of applications) is not guaranteed, as the current level of support assumes only fixing critical issues.
This article describes the data/samples/objects/dynamic_05.cpp sample.
The dynamic_05 sample demonstrates how to copy geometry of a static mesh to a dynamic object.
The material which is used for the dynamic object is specified in the dynamic_05.mat file.
Since the dynamic object requires a custom shader for rendering, in this sample, the shader that is used for a mesh is applied to the dynamic object to avoid creating the new shader.
The left statue is the dynamic object copied from the static mesh (the right statue)
See Also#
- Functions of the ObjectDynamic class
- Articles on Materials Files formats to learn more about the *.basemat and *.mat files
- Article on Built-in Base Materials to choose the material, from which the material for the dynamic object can be inherited
Last update:
2021-04-29
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)