particles_01
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/particles_01.cpp sample.
The particles_01 sample demonstrates how to generate length particles on a surface of an arbitrary mesh, namely:
- Add a mesh and set it as a parent node for the created particle system
- Change a type of the particles and specify a stretching factor for them
- Change the emitter type
- Set a life time for the emitted particles
- Specify a radius and growth factor of the particles
- Specify a movement velocity of the particles and a gravity force, which influences on this velocity
Particles emitted from the random vertices of the given mesh
See Also#
- Article on Particle Systems
- Functions of the ObjectParticles class
Last update:
31.07.2020
Помогите сделать статью лучше
Была ли эта статья полезной?
(или выберите слово/фразу и нажмите Ctrl+Enter