diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/irrlicht-1.8/doc/html/classirr_1_1scene_1_1_i_particle_system_scene_node.html | 1441 |
1 files changed, 1441 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/doc/html/classirr_1_1scene_1_1_i_particle_system_scene_node.html b/libraries/irrlicht-1.8/doc/html/classirr_1_1scene_1_1_i_particle_system_scene_node.html new file mode 100644 index 0000000..58600c7 --- /dev/null +++ b/libraries/irrlicht-1.8/doc/html/classirr_1_1scene_1_1_i_particle_system_scene_node.html | |||
@@ -0,0 +1,1441 @@ | |||
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
2 | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
3 | <head> | ||
4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> | ||
5 | <title>Irrlicht 3D Engine: irr::scene::IParticleSystemSceneNode Class Reference</title> | ||
6 | |||
7 | <link href="tabs.css" rel="stylesheet" type="text/css"/> | ||
8 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> | ||
9 | <link href="navtree.css" rel="stylesheet" type="text/css"/> | ||
10 | <script type="text/javascript" src="jquery.js"></script> | ||
11 | <script type="text/javascript" src="resize.js"></script> | ||
12 | <script type="text/javascript" src="navtree.js"></script> | ||
13 | <script type="text/javascript"> | ||
14 | $(document).ready(initResizable); | ||
15 | </script> | ||
16 | <link href="search/search.css" rel="stylesheet" type="text/css"/> | ||
17 | <script type="text/javascript" src="search/search.js"></script> | ||
18 | <script type="text/javascript"> | ||
19 | $(document).ready(function() { searchBox.OnSelectItem(0); }); | ||
20 | </script> | ||
21 | |||
22 | </head> | ||
23 | <body> | ||
24 | <div id="top"><!-- do not remove this div! --> | ||
25 | |||
26 | |||
27 | <div id="titlearea"> | ||
28 | <table cellspacing="0" cellpadding="0"> | ||
29 | <tbody> | ||
30 | <tr style="height: 56px;"> | ||
31 | |||
32 | <td id="projectlogo"><img alt="Logo" src="irrlichtlogo.png"/></td> | ||
33 | |||
34 | |||
35 | <td style="padding-left: 0.5em;"> | ||
36 | <div id="projectname">Irrlicht 3D Engine | ||
37 | |||
38 | </div> | ||
39 | |||
40 | </td> | ||
41 | |||
42 | |||
43 | |||
44 | |||
45 | <td> <div id="MSearchBox" class="MSearchBoxInactive"> | ||
46 | <span class="left"> | ||
47 | <img id="MSearchSelect" src="search/mag_sel.png" | ||
48 | onmouseover="return searchBox.OnSearchSelectShow()" | ||
49 | onmouseout="return searchBox.OnSearchSelectHide()" | ||
50 | alt=""/> | ||
51 | <input type="text" id="MSearchField" value="Search" accesskey="S" | ||
52 | onfocus="searchBox.OnSearchFieldFocus(true)" | ||
53 | onblur="searchBox.OnSearchFieldFocus(false)" | ||
54 | onkeyup="searchBox.OnSearchFieldChange(event)"/> | ||
55 | </span><span class="right"> | ||
56 | <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> | ||
57 | </span> | ||
58 | </div> | ||
59 | </td> | ||
60 | |||
61 | |||
62 | </tr> | ||
63 | </tbody> | ||
64 | </table> | ||
65 | </div> | ||
66 | |||
67 | <!-- Generated by Doxygen 1.7.5.1 --> | ||
68 | <script type="text/javascript"> | ||
69 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); | ||
70 | </script> | ||
71 | <script type="text/javascript" src="dynsections.js"></script> | ||
72 | </div> | ||
73 | <div id="side-nav" class="ui-resizable side-nav-resizable"> | ||
74 | <div id="nav-tree"> | ||
75 | <div id="nav-tree-contents"> | ||
76 | </div> | ||
77 | </div> | ||
78 | <div id="splitbar" style="-moz-user-select:none;" | ||
79 | class="ui-resizable-handle"> | ||
80 | </div> | ||
81 | </div> | ||
82 | <script type="text/javascript"> | ||
83 | initNavTree('classirr_1_1scene_1_1_i_particle_system_scene_node.html',''); | ||
84 | </script> | ||
85 | <div id="doc-content"> | ||
86 | <div class="header"> | ||
87 | <div class="summary"> | ||
88 | <a href="#pub-methods">Public Member Functions</a> </div> | ||
89 | <div class="headertitle"> | ||
90 | <div class="title">irr::scene::IParticleSystemSceneNode Class Reference</div> </div> | ||
91 | </div> | ||
92 | <div class="contents"> | ||
93 | <!-- doxytag: class="irr::scene::IParticleSystemSceneNode" --><!-- doxytag: inherits="irr::scene::ISceneNode" --> | ||
94 | <p>A particle system scene node for creating snow, fire, exlosions, smoke... | ||
95 | <a href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#details">More...</a></p> | ||
96 | |||
97 | <p><code>#include <<a class="el" href="_i_particle_system_scene_node_8h_source.html">IParticleSystemSceneNode.h</a>></code></p> | ||
98 | <div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;"> | ||
99 | <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for irr::scene::IParticleSystemSceneNode:</div> | ||
100 | <div id="dynsection-0-summary" class="dynsummary" style="display:block;"> | ||
101 | </div> | ||
102 | <div id="dynsection-0-content" class="dyncontent" style="display:none;"> | ||
103 | <div class="center"> | ||
104 | <img src="classirr_1_1scene_1_1_i_particle_system_scene_node.png" usemap="#irr::scene::IParticleSystemSceneNode_map" alt=""/> | ||
105 | <map id="irr::scene::IParticleSystemSceneNode_map" name="irr::scene::IParticleSystemSceneNode_map"> | ||
106 | <area href="classirr_1_1scene_1_1_i_scene_node.html" title="Scene node interface." alt="irr::scene::ISceneNode" shape="rect" coords="0,112,223,136"/> | ||
107 | <area href="classirr_1_1io_1_1_i_attribute_exchanging_object.html" title="An object which is able to serialize and deserialize its attributes into an attributes object..." alt="irr::io::IAttributeExchangingObject" shape="rect" coords="0,56,223,80"/> | ||
108 | <area href="classirr_1_1_i_reference_counted.html" title="Base class of most objects of the Irrlicht Engine." alt="irr::IReferenceCounted" shape="rect" coords="0,0,223,24"/> | ||
109 | </map> | ||
110 | </div></div> | ||
111 | |||
112 | <p><a href="classirr_1_1scene_1_1_i_particle_system_scene_node-members.html">List of all members.</a></p> | ||
113 | <h2><a name="pub-methods"></a> | ||
114 | Public Member Functions</h2> | ||
115 | <ul> | ||
116 | <li><a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#a41c24f2388af5451d23f25c79b95295a">IParticleSystemSceneNode</a> (<a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a> *parent, <a class="el" href="classirr_1_1scene_1_1_i_scene_manager.html">ISceneManager</a> *mgr, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> id, const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &position=<a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0, 0, 0), const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &rotation=<a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0, 0, 0), const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &scale=<a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(1.0f, 1.0f, 1.0f)) | ||
117 | <dl class="el"><dd class="mdescRight">Constructor. <a href="#a41c24f2388af5451d23f25c79b95295a"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#a401f5afbbb748878011c5ceb7d447f8b">addAffector</a> (<a class="el" href="classirr_1_1scene_1_1_i_particle_affector.html">IParticleAffector</a> *affector)=0 | ||
118 | <dl class="el"><dd class="mdescRight">Adds new particle effector to the particle system. <a href="#a401f5afbbb748878011c5ceb7d447f8b"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#aaebda202df3c76911773ebf80ed9e393">clearParticles</a> ()=0 | ||
119 | <dl class="el"><dd class="mdescRight">Remove all currently visible particles. <a href="#aaebda202df3c76911773ebf80ed9e393"></a><br/></dl><li>virtual <br class="typebreak"/> | ||
120 | <a class="el" href="classirr_1_1scene_1_1_i_particle_animated_mesh_scene_node_emitter.html">IParticleAnimatedMeshSceneNodeEmitter</a> * <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#a1459245186d570f81f6c7ff78ddd38db">createAnimatedMeshSceneNodeEmitter</a> (<a class="el" href="classirr_1_1scene_1_1_i_animated_mesh_scene_node.html">scene::IAnimatedMeshSceneNode</a> *node, bool useNormalDirection=true, const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &direction=<a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0.0f, 0.03f, 0.0f), f32 normalDirectionModifier=100.0f, s32 mbNumber=-1, bool everyMeshVertex=false, u32 minParticlesPerSecond=5, u32 maxParticlesPerSecond=10, const video::SColor &minStartColor=video::SColor(255, 0, 0, 0), const video::SColor &maxStartColor=video::SColor(255, 255, 255, 255), u32 lifeTimeMin=2000, u32 lifeTimeMax=4000, s32 maxAngleDegrees=0, const core::dimension2df &minStartSize=core::dimension2df(5.0f, 5.0f), const core::dimension2df &maxStartSize=core::dimension2df(5.0f, 5.0f))=0 | ||
121 | <dl class="el"><dd class="mdescRight">Creates a particle emitter for an animated mesh scene node. <a href="#a1459245186d570f81f6c7ff78ddd38db"></a><br/></dl><li>virtual <br class="typebreak"/> | ||
122 | <a class="el" href="classirr_1_1scene_1_1_i_particle_attraction_affector.html">IParticleAttractionAffector</a> * <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#a833def146fb8b3d79bbbfbf69a9ed963">createAttractionAffector</a> (const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &point, <a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> speed=1.0f, bool attract=true, bool affectX=true, bool affectY=true, bool affectZ=true)=0 | ||
123 | <dl class="el"><dd class="mdescRight">Creates a point attraction affector. <a href="#a833def146fb8b3d79bbbfbf69a9ed963"></a><br/></dl><li>virtual <a class="el" href="classirr_1_1scene_1_1_i_particle_box_emitter.html">IParticleBoxEmitter</a> * <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#ae5f92fb41680b5da357c42cbb44e1675">createBoxEmitter</a> (const <a class="el" href="namespaceirr_1_1core.html#adfc8fa01b30044c55f3332a1d6c1aa19">core::aabbox3df</a> &box=<a class="el" href="namespaceirr_1_1core.html#adfc8fa01b30044c55f3332a1d6c1aa19">core::aabbox3df</a>(-10, 28,-10, 10, 30, 10), const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &direction=<a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0.0f, 0.03f, 0.0f), u32 minParticlesPerSecond=5, u32 maxParticlesPerSecond=10, const video::SColor &minStartColor=video::SColor(255, 0, 0, 0), const video::SColor &maxStartColor=video::SColor(255, 255, 255, 255), u32 lifeTimeMin=2000, u32 lifeTimeMax=4000, s32 maxAngleDegrees=0, const core::dimension2df &minStartSize=core::dimension2df(5.0f, 5.0f), const core::dimension2df &maxStartSize=core::dimension2df(5.0f, 5.0f))=0 | ||
124 | <dl class="el"><dd class="mdescRight">Creates a box particle emitter. <a href="#ae5f92fb41680b5da357c42cbb44e1675"></a><br/></dl><li>virtual <a class="el" href="classirr_1_1scene_1_1_i_particle_cylinder_emitter.html">IParticleCylinderEmitter</a> * <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#a191550f97d9f8a1ac7c6fefd78d84bf5">createCylinderEmitter</a> (const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &center, <a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> radius, const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &normal, <a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> length, bool outlineOnly=false, const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &direction=<a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0.0f, 0.03f, 0.0f), u32 minParticlesPerSecond=5, u32 maxParticlesPerSecond=10, const video::SColor &minStartColor=video::SColor(255, 0, 0, 0), const video::SColor &maxStartColor=video::SColor(255, 255, 255, 255), u32 lifeTimeMin=2000, u32 lifeTimeMax=4000, s32 maxAngleDegrees=0, const core::dimension2df &minStartSize=core::dimension2df(5.0f, 5.0f), const core::dimension2df &maxStartSize=core::dimension2df(5.0f, 5.0f))=0 | ||
125 | <dl class="el"><dd class="mdescRight">Creates a particle emitter for emitting from a cylinder. <a href="#a191550f97d9f8a1ac7c6fefd78d84bf5"></a><br/></dl><li>virtual <a class="el" href="classirr_1_1scene_1_1_i_particle_fade_out_affector.html">IParticleFadeOutAffector</a> * <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#a4a9c3ecdf6118267f312f9389bb24888">createFadeOutParticleAffector</a> (const <a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a> &targetColor=<a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a>(0, 0, 0, 0), <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> timeNeededToFadeOut=1000)=0 | ||
126 | <dl class="el"><dd class="mdescRight">Creates a fade out particle affector. <a href="#a4a9c3ecdf6118267f312f9389bb24888"></a><br/></dl><li>virtual <a class="el" href="classirr_1_1scene_1_1_i_particle_gravity_affector.html">IParticleGravityAffector</a> * <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#af06d3565f9c352bdcdf68bb2e3797c32">createGravityAffector</a> (const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &gravity=<a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0.0f,-0.03f, 0.0f), u32 timeForceLost=1000)=0 | ||
127 | <dl class="el"><dd class="mdescRight">Creates a gravity affector. <a href="#af06d3565f9c352bdcdf68bb2e3797c32"></a><br/></dl><li>virtual <a class="el" href="classirr_1_1scene_1_1_i_particle_mesh_emitter.html">IParticleMeshEmitter</a> * <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#a7e08b7e74a5295fd167769d5ee5a5161">createMeshEmitter</a> (<a class="el" href="classirr_1_1scene_1_1_i_mesh.html">scene::IMesh</a> *mesh, bool useNormalDirection=true, const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &direction=<a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0.0f, 0.03f, 0.0f), f32 normalDirectionModifier=100.0f, s32 mbNumber=-1, bool everyMeshVertex=false, u32 minParticlesPerSecond=5, u32 maxParticlesPerSecond=10, const video::SColor &minStartColor=video::SColor(255, 0, 0, 0), const video::SColor &maxStartColor=video::SColor(255, 255, 255, 255), u32 lifeTimeMin=2000, u32 lifeTimeMax=4000, s32 maxAngleDegrees=0, const core::dimension2df &minStartSize=core::dimension2df(5.0f, 5.0f), const core::dimension2df &maxStartSize=core::dimension2df(5.0f, 5.0f))=0 | ||
128 | <dl class="el"><dd class="mdescRight">Creates a mesh particle emitter. <a href="#a7e08b7e74a5295fd167769d5ee5a5161"></a><br/></dl><li>virtual <a class="el" href="namespaceirr_1_1scene.html#a719d36e28f832373a9aa9596bde0da89">IParticlePointEmitter</a> * <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#a99e2549ad185f0c23b73f43869c60ab8">createPointEmitter</a> (const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &direction=<a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0.0f, 0.03f, 0.0f), u32 minParticlesPerSecond=5, u32 maxParticlesPerSecond=10, const video::SColor &minStartColor=video::SColor(255, 0, 0, 0), const video::SColor &maxStartColor=video::SColor(255, 255, 255, 255), u32 lifeTimeMin=2000, u32 lifeTimeMax=4000, s32 maxAngleDegrees=0, const core::dimension2df &minStartSize=core::dimension2df(5.0f, 5.0f), const core::dimension2df &maxStartSize=core::dimension2df(5.0f, 5.0f))=0 | ||
129 | <dl class="el"><dd class="mdescRight">Creates a point particle emitter. <a href="#a99e2549ad185f0c23b73f43869c60ab8"></a><br/></dl><li>virtual <a class="el" href="classirr_1_1scene_1_1_i_particle_ring_emitter.html">IParticleRingEmitter</a> * <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#adee7e28b730ce82ae78e01ccccfff98e">createRingEmitter</a> (const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &center, <a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> radius, <a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> ringThickness, const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &direction=<a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0.0f, 0.03f, 0.0f), u32 minParticlesPerSecond=5, u32 maxParticlesPerSecond=10, const video::SColor &minStartColor=video::SColor(255, 0, 0, 0), const video::SColor &maxStartColor=video::SColor(255, 255, 255, 255), u32 lifeTimeMin=2000, u32 lifeTimeMax=4000, s32 maxAngleDegrees=0, const core::dimension2df &minStartSize=core::dimension2df(5.0f, 5.0f), const core::dimension2df &maxStartSize=core::dimension2df(5.0f, 5.0f))=0 | ||
130 | <dl class="el"><dd class="mdescRight">Creates a ring particle emitter. <a href="#adee7e28b730ce82ae78e01ccccfff98e"></a><br/></dl><li>virtual <a class="el" href="classirr_1_1scene_1_1_i_particle_rotation_affector.html">IParticleRotationAffector</a> * <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#a7a09b7ebc0d4a2d164233c42689623d6">createRotationAffector</a> (const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &speed=<a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(5.0f, 5.0f, 5.0f), const core::vector3df &pivotPoint=core::vector3df(0.0f, 0.0f, 0.0f))=0 | ||
131 | <dl class="el"><dd class="mdescRight">Creates a rotation affector. <a href="#a7a09b7ebc0d4a2d164233c42689623d6"></a><br/></dl><li>virtual <a class="el" href="classirr_1_1scene_1_1_i_particle_affector.html">IParticleAffector</a> * <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#a015692bb57e0b6dfff1de96975b3bc74">createScaleParticleAffector</a> (const <a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a> &scaleTo=<a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a>(1.0f, 1.0f))=0 | ||
132 | <dl class="el"><dd class="mdescRight">Creates a scale particle affector. <a href="#a015692bb57e0b6dfff1de96975b3bc74"></a><br/></dl><li>virtual <a class="el" href="classirr_1_1scene_1_1_i_particle_sphere_emitter.html">IParticleSphereEmitter</a> * <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#abb4fe6b6346ede961805166fc5355fef">createSphereEmitter</a> (const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &center, <a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> radius, const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &direction=<a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0.0f, 0.03f, 0.0f), u32 minParticlesPerSecond=5, u32 maxParticlesPerSecond=10, const video::SColor &minStartColor=video::SColor(255, 0, 0, 0), const video::SColor &maxStartColor=video::SColor(255, 255, 255, 255), u32 lifeTimeMin=2000, u32 lifeTimeMax=4000, s32 maxAngleDegrees=0, const core::dimension2df &minStartSize=core::dimension2df(5.0f, 5.0f), const core::dimension2df &maxStartSize=core::dimension2df(5.0f, 5.0f))=0 | ||
133 | <dl class="el"><dd class="mdescRight">Creates a sphere particle emitter. <a href="#abb4fe6b6346ede961805166fc5355fef"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#aac6245c300b7226cb2b911b0ea642cec">doParticleSystem</a> (<a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> time)=0 | ||
134 | <li>virtual const <a class="el" href="classirr_1_1core_1_1list.html">core::list</a><br class="typebreak"/> | ||
135 | < <a class="el" href="classirr_1_1scene_1_1_i_particle_affector.html">IParticleAffector</a> * > & <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#a3a9159e6ec5869814fdf879c5a7c41a3">getAffectors</a> () const =0 | ||
136 | <dl class="el"><dd class="mdescRight">Get a list of all particle affectors. <a href="#a3a9159e6ec5869814fdf879c5a7c41a3"></a><br/></dl><li>virtual <a class="el" href="classirr_1_1scene_1_1_i_particle_emitter.html">IParticleEmitter</a> * <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#a2f1a12f030ad5aadfd8d1be24021c7d5">getEmitter</a> ()=0 | ||
137 | <dl class="el"><dd class="mdescRight">Gets the particle emitter, which creates the particles. <a href="#a2f1a12f030ad5aadfd8d1be24021c7d5"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#a96df4c07ee0c480cc2e51e157be308c6">removeAllAffectors</a> ()=0 | ||
138 | <dl class="el"><dd class="mdescRight">Removes all particle affectors in the particle system. <a href="#a96df4c07ee0c480cc2e51e157be308c6"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#aececff4531482ce976f1859c40bf3f76">setEmitter</a> (<a class="el" href="classirr_1_1scene_1_1_i_particle_emitter.html">IParticleEmitter</a> *emitter)=0 | ||
139 | <dl class="el"><dd class="mdescRight">Sets the particle emitter, which creates the particles. <a href="#aececff4531482ce976f1859c40bf3f76"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#adc1c12bd7bf1a075f00c5dafa3aff266">setParticlesAreGlobal</a> (bool global=true)=0 | ||
140 | <dl class="el"><dd class="mdescRight">Sets if the particles should be global. <a href="#adc1c12bd7bf1a075f00c5dafa3aff266"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#a17e1abe0feb0b57e96bf49d984bcbb86">setParticleSize</a> (const <a class="el" href="classirr_1_1core_1_1dimension2d.html">core::dimension2d</a>< <a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> > &size=<a class="el" href="classirr_1_1core_1_1dimension2d.html">core::dimension2d</a>< <a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> >(5.0f, 5.0f))=0 | ||
141 | <dl class="el"><dd class="mdescRight">Sets the size of all particles. <a href="#a17e1abe0feb0b57e96bf49d984bcbb86"></a><br/></dl></ul> | ||
142 | <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> | ||
143 | <div class="textblock"><p>A particle system scene node for creating snow, fire, exlosions, smoke... </p> | ||
144 | <p>A scene node controlling a particle System. The behavior of the particles can be controlled by setting the right particle emitters and affectors. You can for example easily create a campfire by doing this:</p> | ||
145 | <div class="fragment"><pre class="fragment"> scene::IParticleSystemSceneNode* p = scenemgr->addParticleSystemSceneNode(); | ||
146 | p->setParticleSize(core::dimension2d<f32>(20.0f, 10.0f)); | ||
147 | scene::IParticleEmitter* em = p->createBoxEmitter( | ||
148 | core::aabbox3d<f32>(-5,0,-5,5,1,5), | ||
149 | <a class="code" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811" title="Typedef for a f32 3d vector.">core::vector3df</a>(0.0f,0.03f,0.0f), | ||
150 | 40,80, video::SColor(0,255,255,255),video::SColor(0,255,255,255), 1100,2000); | ||
151 | p->setEmitter(em); | ||
152 | em->drop(); | ||
153 | scene::IParticleAffector* paf = p->createFadeOutParticleAffector(); | ||
154 | p->addAffector(paf); | ||
155 | paf->drop(); | ||
156 | </pre></div> | ||
157 | <p>Definition at line <a class="el" href="_i_particle_system_scene_node_8h_source.html#l00046">46</a> of file <a class="el" href="_i_particle_system_scene_node_8h_source.html">IParticleSystemSceneNode.h</a>.</p> | ||
158 | </div><hr/><h2>Constructor & Destructor Documentation</h2> | ||
159 | <a class="anchor" id="a41c24f2388af5451d23f25c79b95295a"></a><!-- doxytag: member="irr::scene::IParticleSystemSceneNode::IParticleSystemSceneNode" ref="a41c24f2388af5451d23f25c79b95295a" args="(ISceneNode *parent, ISceneManager *mgr, s32 id, const core::vector3df &position=core::vector3df(0, 0, 0), const core::vector3df &rotation=core::vector3df(0, 0, 0), const core::vector3df &scale=core::vector3df(1.0f, 1.0f, 1.0f))" --> | ||
160 | <div class="memitem"> | ||
161 | <div class="memproto"> | ||
162 | <table class="memname"> | ||
163 | <tr> | ||
164 | <td class="memname">irr::scene::IParticleSystemSceneNode::IParticleSystemSceneNode </td> | ||
165 | <td>(</td> | ||
166 | <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a> * </td> | ||
167 | <td class="paramname"><em>parent</em>, </td> | ||
168 | </tr> | ||
169 | <tr> | ||
170 | <td class="paramkey"></td> | ||
171 | <td></td> | ||
172 | <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_scene_manager.html">ISceneManager</a> * </td> | ||
173 | <td class="paramname"><em>mgr</em>, </td> | ||
174 | </tr> | ||
175 | <tr> | ||
176 | <td class="paramkey"></td> | ||
177 | <td></td> | ||
178 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
179 | <td class="paramname"><em>id</em>, </td> | ||
180 | </tr> | ||
181 | <tr> | ||
182 | <td class="paramkey"></td> | ||
183 | <td></td> | ||
184 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> & </td> | ||
185 | <td class="paramname"><em>position</em> = <code><a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0,0,0)</code>, </td> | ||
186 | </tr> | ||
187 | <tr> | ||
188 | <td class="paramkey"></td> | ||
189 | <td></td> | ||
190 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> & </td> | ||
191 | <td class="paramname"><em>rotation</em> = <code><a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0,0,0)</code>, </td> | ||
192 | </tr> | ||
193 | <tr> | ||
194 | <td class="paramkey"></td> | ||
195 | <td></td> | ||
196 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> & </td> | ||
197 | <td class="paramname"><em>scale</em> = <code><a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(1.0f, 1.0f, 1.0f)</code> </td> | ||
198 | </tr> | ||
199 | <tr> | ||
200 | <td></td> | ||
201 | <td>)</td> | ||
202 | <td></td><td><code> [inline]</code></td> | ||
203 | </tr> | ||
204 | </table> | ||
205 | </div> | ||
206 | <div class="memdoc"> | ||
207 | |||
208 | <p>Constructor. </p> | ||
209 | |||
210 | <p>Definition at line <a class="el" href="_i_particle_system_scene_node_8h_source.html#l00051">51</a> of file <a class="el" href="_i_particle_system_scene_node_8h_source.html">IParticleSystemSceneNode.h</a>.</p> | ||
211 | |||
212 | </div> | ||
213 | </div> | ||
214 | <hr/><h2>Member Function Documentation</h2> | ||
215 | <a class="anchor" id="a401f5afbbb748878011c5ceb7d447f8b"></a><!-- doxytag: member="irr::scene::IParticleSystemSceneNode::addAffector" ref="a401f5afbbb748878011c5ceb7d447f8b" args="(IParticleAffector *affector)=0" --> | ||
216 | <div class="memitem"> | ||
217 | <div class="memproto"> | ||
218 | <table class="memname"> | ||
219 | <tr> | ||
220 | <td class="memname">virtual void irr::scene::IParticleSystemSceneNode::addAffector </td> | ||
221 | <td>(</td> | ||
222 | <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_particle_affector.html">IParticleAffector</a> * </td> | ||
223 | <td class="paramname"><em>affector</em></td><td>)</td> | ||
224 | <td><code> [pure virtual]</code></td> | ||
225 | </tr> | ||
226 | </table> | ||
227 | </div> | ||
228 | <div class="memdoc"> | ||
229 | |||
230 | <p>Adds new particle effector to the particle system. </p> | ||
231 | <p>A particle affector modifies the particles. For example, the FadeOut affector lets all particles fade out after some time. It is created and used in this way: </p> | ||
232 | <div class="fragment"><pre class="fragment"> IParticleAffector* p = <a class="code" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#a4a9c3ecdf6118267f312f9389bb24888" title="Creates a fade out particle affector.">createFadeOutParticleAffector</a>(); | ||
233 | <a class="code" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#a401f5afbbb748878011c5ceb7d447f8b" title="Adds new particle effector to the particle system.">addAffector</a>(p); | ||
234 | p->drop(); | ||
235 | </pre></div><p> Please note that an affector is not necessary for the particle system to work. </p> | ||
236 | <dl><dt><b>Parameters:</b></dt><dd> | ||
237 | <table class="params"> | ||
238 | <tr><td class="paramname">affector,:</td><td>New affector. </td></tr> | ||
239 | </table> | ||
240 | </dd> | ||
241 | </dl> | ||
242 | |||
243 | </div> | ||
244 | </div> | ||
245 | <a class="anchor" id="aaebda202df3c76911773ebf80ed9e393"></a><!-- doxytag: member="irr::scene::IParticleSystemSceneNode::clearParticles" ref="aaebda202df3c76911773ebf80ed9e393" args="()=0" --> | ||
246 | <div class="memitem"> | ||
247 | <div class="memproto"> | ||
248 | <table class="memname"> | ||
249 | <tr> | ||
250 | <td class="memname">virtual void irr::scene::IParticleSystemSceneNode::clearParticles </td> | ||
251 | <td>(</td> | ||
252 | <td class="paramname"></td><td>)</td> | ||
253 | <td><code> [pure virtual]</code></td> | ||
254 | </tr> | ||
255 | </table> | ||
256 | </div> | ||
257 | <div class="memdoc"> | ||
258 | |||
259 | <p>Remove all currently visible particles. </p> | ||
260 | |||
261 | </div> | ||
262 | </div> | ||
263 | <a class="anchor" id="a1459245186d570f81f6c7ff78ddd38db"></a><!-- doxytag: member="irr::scene::IParticleSystemSceneNode::createAnimatedMeshSceneNodeEmitter" ref="a1459245186d570f81f6c7ff78ddd38db" args="(scene::IAnimatedMeshSceneNode *node, bool useNormalDirection=true, const core::vector3df &direction=core::vector3df(0.0f, 0.03f, 0.0f), f32 normalDirectionModifier=100.0f, s32 mbNumber=-1, bool everyMeshVertex=false, u32 minParticlesPerSecond=5, u32 maxParticlesPerSecond=10, const video::SColor &minStartColor=video::SColor(255, 0, 0, 0), const video::SColor &maxStartColor=video::SColor(255, 255, 255, 255), u32 lifeTimeMin=2000, u32 lifeTimeMax=4000, s32 maxAngleDegrees=0, const core::dimension2df &minStartSize=core::dimension2df(5.0f, 5.0f), const core::dimension2df &maxStartSize=core::dimension2df(5.0f, 5.0f))=0" --> | ||
264 | <div class="memitem"> | ||
265 | <div class="memproto"> | ||
266 | <table class="memname"> | ||
267 | <tr> | ||
268 | <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_particle_animated_mesh_scene_node_emitter.html">IParticleAnimatedMeshSceneNodeEmitter</a>* irr::scene::IParticleSystemSceneNode::createAnimatedMeshSceneNodeEmitter </td> | ||
269 | <td>(</td> | ||
270 | <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_animated_mesh_scene_node.html">scene::IAnimatedMeshSceneNode</a> * </td> | ||
271 | <td class="paramname"><em>node</em>, </td> | ||
272 | </tr> | ||
273 | <tr> | ||
274 | <td class="paramkey"></td> | ||
275 | <td></td> | ||
276 | <td class="paramtype">bool </td> | ||
277 | <td class="paramname"><em>useNormalDirection</em> = <code>true</code>, </td> | ||
278 | </tr> | ||
279 | <tr> | ||
280 | <td class="paramkey"></td> | ||
281 | <td></td> | ||
282 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> & </td> | ||
283 | <td class="paramname"><em>direction</em> = <code><a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0.0f, 0.03f, 0.0f)</code>, </td> | ||
284 | </tr> | ||
285 | <tr> | ||
286 | <td class="paramkey"></td> | ||
287 | <td></td> | ||
288 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> </td> | ||
289 | <td class="paramname"><em>normalDirectionModifier</em> = <code>100.0f</code>, </td> | ||
290 | </tr> | ||
291 | <tr> | ||
292 | <td class="paramkey"></td> | ||
293 | <td></td> | ||
294 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
295 | <td class="paramname"><em>mbNumber</em> = <code>-1</code>, </td> | ||
296 | </tr> | ||
297 | <tr> | ||
298 | <td class="paramkey"></td> | ||
299 | <td></td> | ||
300 | <td class="paramtype">bool </td> | ||
301 | <td class="paramname"><em>everyMeshVertex</em> = <code>false</code>, </td> | ||
302 | </tr> | ||
303 | <tr> | ||
304 | <td class="paramkey"></td> | ||
305 | <td></td> | ||
306 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
307 | <td class="paramname"><em>minParticlesPerSecond</em> = <code>5</code>, </td> | ||
308 | </tr> | ||
309 | <tr> | ||
310 | <td class="paramkey"></td> | ||
311 | <td></td> | ||
312 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
313 | <td class="paramname"><em>maxParticlesPerSecond</em> = <code>10</code>, </td> | ||
314 | </tr> | ||
315 | <tr> | ||
316 | <td class="paramkey"></td> | ||
317 | <td></td> | ||
318 | <td class="paramtype">const <a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a> & </td> | ||
319 | <td class="paramname"><em>minStartColor</em> = <code><a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a>(255, 0, 0, 0)</code>, </td> | ||
320 | </tr> | ||
321 | <tr> | ||
322 | <td class="paramkey"></td> | ||
323 | <td></td> | ||
324 | <td class="paramtype">const <a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a> & </td> | ||
325 | <td class="paramname"><em>maxStartColor</em> = <code><a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a>(255, 255, 255, 255)</code>, </td> | ||
326 | </tr> | ||
327 | <tr> | ||
328 | <td class="paramkey"></td> | ||
329 | <td></td> | ||
330 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
331 | <td class="paramname"><em>lifeTimeMin</em> = <code>2000</code>, </td> | ||
332 | </tr> | ||
333 | <tr> | ||
334 | <td class="paramkey"></td> | ||
335 | <td></td> | ||
336 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
337 | <td class="paramname"><em>lifeTimeMax</em> = <code>4000</code>, </td> | ||
338 | </tr> | ||
339 | <tr> | ||
340 | <td class="paramkey"></td> | ||
341 | <td></td> | ||
342 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
343 | <td class="paramname"><em>maxAngleDegrees</em> = <code>0</code>, </td> | ||
344 | </tr> | ||
345 | <tr> | ||
346 | <td class="paramkey"></td> | ||
347 | <td></td> | ||
348 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a> & </td> | ||
349 | <td class="paramname"><em>minStartSize</em> = <code><a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a>(5.0f, 5.0f)</code>, </td> | ||
350 | </tr> | ||
351 | <tr> | ||
352 | <td class="paramkey"></td> | ||
353 | <td></td> | ||
354 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a> & </td> | ||
355 | <td class="paramname"><em>maxStartSize</em> = <code><a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a>(5.0f, 5.0f)</code> </td> | ||
356 | </tr> | ||
357 | <tr> | ||
358 | <td></td> | ||
359 | <td>)</td> | ||
360 | <td></td><td><code> [pure virtual]</code></td> | ||
361 | </tr> | ||
362 | </table> | ||
363 | </div> | ||
364 | <div class="memdoc"> | ||
365 | |||
366 | <p>Creates a particle emitter for an animated mesh scene node. </p> | ||
367 | <dl><dt><b>Parameters:</b></dt><dd> | ||
368 | <table class="params"> | ||
369 | <tr><td class="paramname">node,:</td><td>Pointer to the animated mesh scene node to emit particles from </td></tr> | ||
370 | <tr><td class="paramname">useNormalDirection,:</td><td>If true, the direction of each particle created will be the normal of the vertex that it's emitting from. The normal is divided by the normalDirectionModifier parameter, which defaults to 100.0f. </td></tr> | ||
371 | <tr><td class="paramname">direction,:</td><td>Direction and speed of particle emission. </td></tr> | ||
372 | <tr><td class="paramname">normalDirectionModifier,:</td><td>If the emitter is using the normal direction then the normal of the vertex that is being emitted from is divided by this number. </td></tr> | ||
373 | <tr><td class="paramname">mbNumber,:</td><td>This allows you to specify a specific meshBuffer for the IMesh* to emit particles from. The default value is -1, which means a random meshBuffer picked from all of the meshes meshBuffers will be selected to pick a random vertex from. If the value is 0 or greater, it will only pick random vertices from the meshBuffer specified by this value. </td></tr> | ||
374 | <tr><td class="paramname">everyMeshVertex,:</td><td>If true, the emitter will emit between min/max particles every second, for every vertex in the mesh, if false, it will emit between min/max particles from random vertices in the mesh. </td></tr> | ||
375 | <tr><td class="paramname">minParticlesPerSecond,:</td><td>Minimal amount of particles emitted per second. </td></tr> | ||
376 | <tr><td class="paramname">maxParticlesPerSecond,:</td><td>Maximal amount of particles emitted per second. </td></tr> | ||
377 | <tr><td class="paramname">minStartColor,:</td><td>Minimal initial start color of a particle. The real color of every particle is calculated as random interpolation between minStartColor and maxStartColor. </td></tr> | ||
378 | <tr><td class="paramname">maxStartColor,:</td><td>Maximal initial start color of a particle. The real color of every particle is calculated as random interpolation between minStartColor and maxStartColor. </td></tr> | ||
379 | <tr><td class="paramname">lifeTimeMin,:</td><td>Minimal lifetime of a particle, in milliseconds. </td></tr> | ||
380 | <tr><td class="paramname">lifeTimeMax,:</td><td>Maximal lifetime of a particle, in milliseconds. </td></tr> | ||
381 | <tr><td class="paramname">maxAngleDegrees,:</td><td>Maximal angle in degrees, the emitting direction of the particle will differ from the original direction. </td></tr> | ||
382 | <tr><td class="paramname">minStartSize,:</td><td>Minimal initial start size of a particle. The real size of every particle is calculated as random interpolation between minStartSize and maxStartSize. </td></tr> | ||
383 | <tr><td class="paramname">maxStartSize,:</td><td>Maximal initial start size of a particle. The real size of every particle is calculated as random interpolation between minStartSize and maxStartSize. </td></tr> | ||
384 | </table> | ||
385 | </dd> | ||
386 | </dl> | ||
387 | <dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to the created particle emitter. To set this emitter as new emitter of this particle system, just call <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#aececff4531482ce976f1859c40bf3f76" title="Sets the particle emitter, which creates the particles.">setEmitter()</a>. Note that you'll have to <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a> the returned pointer, after you don't need it any more, see <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">IReferenceCounted::drop()</a> for more informations. </dd></dl> | ||
388 | |||
389 | </div> | ||
390 | </div> | ||
391 | <a class="anchor" id="a833def146fb8b3d79bbbfbf69a9ed963"></a><!-- doxytag: member="irr::scene::IParticleSystemSceneNode::createAttractionAffector" ref="a833def146fb8b3d79bbbfbf69a9ed963" args="(const core::vector3df &point, f32 speed=1.0f, bool attract=true, bool affectX=true, bool affectY=true, bool affectZ=true)=0" --> | ||
392 | <div class="memitem"> | ||
393 | <div class="memproto"> | ||
394 | <table class="memname"> | ||
395 | <tr> | ||
396 | <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_particle_attraction_affector.html">IParticleAttractionAffector</a>* irr::scene::IParticleSystemSceneNode::createAttractionAffector </td> | ||
397 | <td>(</td> | ||
398 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> & </td> | ||
399 | <td class="paramname"><em>point</em>, </td> | ||
400 | </tr> | ||
401 | <tr> | ||
402 | <td class="paramkey"></td> | ||
403 | <td></td> | ||
404 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> </td> | ||
405 | <td class="paramname"><em>speed</em> = <code>1.0f</code>, </td> | ||
406 | </tr> | ||
407 | <tr> | ||
408 | <td class="paramkey"></td> | ||
409 | <td></td> | ||
410 | <td class="paramtype">bool </td> | ||
411 | <td class="paramname"><em>attract</em> = <code>true</code>, </td> | ||
412 | </tr> | ||
413 | <tr> | ||
414 | <td class="paramkey"></td> | ||
415 | <td></td> | ||
416 | <td class="paramtype">bool </td> | ||
417 | <td class="paramname"><em>affectX</em> = <code>true</code>, </td> | ||
418 | </tr> | ||
419 | <tr> | ||
420 | <td class="paramkey"></td> | ||
421 | <td></td> | ||
422 | <td class="paramtype">bool </td> | ||
423 | <td class="paramname"><em>affectY</em> = <code>true</code>, </td> | ||
424 | </tr> | ||
425 | <tr> | ||
426 | <td class="paramkey"></td> | ||
427 | <td></td> | ||
428 | <td class="paramtype">bool </td> | ||
429 | <td class="paramname"><em>affectZ</em> = <code>true</code> </td> | ||
430 | </tr> | ||
431 | <tr> | ||
432 | <td></td> | ||
433 | <td>)</td> | ||
434 | <td></td><td><code> [pure virtual]</code></td> | ||
435 | </tr> | ||
436 | </table> | ||
437 | </div> | ||
438 | <div class="memdoc"> | ||
439 | |||
440 | <p>Creates a point attraction affector. </p> | ||
441 | <p>This affector modifies the positions of the particles and attracts them to a specified point at a specified speed per second. </p> | ||
442 | <dl><dt><b>Parameters:</b></dt><dd> | ||
443 | <table class="params"> | ||
444 | <tr><td class="paramname">point,:</td><td>Point to attract particles to. </td></tr> | ||
445 | <tr><td class="paramname">speed,:</td><td>Speed in units per second, to attract to the specified point. </td></tr> | ||
446 | <tr><td class="paramname">attract,:</td><td>Whether the particles attract or detract from this point. </td></tr> | ||
447 | <tr><td class="paramname">affectX,:</td><td>Whether or not this will affect the X position of the particle. </td></tr> | ||
448 | <tr><td class="paramname">affectY,:</td><td>Whether or not this will affect the Y position of the particle. </td></tr> | ||
449 | <tr><td class="paramname">affectZ,:</td><td>Whether or not this will affect the Z position of the particle. </td></tr> | ||
450 | </table> | ||
451 | </dd> | ||
452 | </dl> | ||
453 | <dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to the created particle affector. To add this affector as new affector of this particle system, just call <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#a401f5afbbb748878011c5ceb7d447f8b" title="Adds new particle effector to the particle system.">addAffector()</a>. Note that you'll have to <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a> the returned pointer, after you don't need it any more, see <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">IReferenceCounted::drop()</a> for more informations. </dd></dl> | ||
454 | |||
455 | </div> | ||
456 | </div> | ||
457 | <a class="anchor" id="ae5f92fb41680b5da357c42cbb44e1675"></a><!-- doxytag: member="irr::scene::IParticleSystemSceneNode::createBoxEmitter" ref="ae5f92fb41680b5da357c42cbb44e1675" args="(const core::aabbox3df &box=core::aabbox3df(-10, 28,-10, 10, 30, 10), const core::vector3df &direction=core::vector3df(0.0f, 0.03f, 0.0f), u32 minParticlesPerSecond=5, u32 maxParticlesPerSecond=10, const video::SColor &minStartColor=video::SColor(255, 0, 0, 0), const video::SColor &maxStartColor=video::SColor(255, 255, 255, 255), u32 lifeTimeMin=2000, u32 lifeTimeMax=4000, s32 maxAngleDegrees=0, const core::dimension2df &minStartSize=core::dimension2df(5.0f, 5.0f), const core::dimension2df &maxStartSize=core::dimension2df(5.0f, 5.0f))=0" --> | ||
458 | <div class="memitem"> | ||
459 | <div class="memproto"> | ||
460 | <table class="memname"> | ||
461 | <tr> | ||
462 | <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_particle_box_emitter.html">IParticleBoxEmitter</a>* irr::scene::IParticleSystemSceneNode::createBoxEmitter </td> | ||
463 | <td>(</td> | ||
464 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#adfc8fa01b30044c55f3332a1d6c1aa19">core::aabbox3df</a> & </td> | ||
465 | <td class="paramname"><em>box</em> = <code><a class="el" href="namespaceirr_1_1core.html#adfc8fa01b30044c55f3332a1d6c1aa19">core::aabbox3df</a>(-10, 28,-10, 10, 30, 10)</code>, </td> | ||
466 | </tr> | ||
467 | <tr> | ||
468 | <td class="paramkey"></td> | ||
469 | <td></td> | ||
470 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> & </td> | ||
471 | <td class="paramname"><em>direction</em> = <code><a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0.0f, 0.03f, 0.0f)</code>, </td> | ||
472 | </tr> | ||
473 | <tr> | ||
474 | <td class="paramkey"></td> | ||
475 | <td></td> | ||
476 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
477 | <td class="paramname"><em>minParticlesPerSecond</em> = <code>5</code>, </td> | ||
478 | </tr> | ||
479 | <tr> | ||
480 | <td class="paramkey"></td> | ||
481 | <td></td> | ||
482 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
483 | <td class="paramname"><em>maxParticlesPerSecond</em> = <code>10</code>, </td> | ||
484 | </tr> | ||
485 | <tr> | ||
486 | <td class="paramkey"></td> | ||
487 | <td></td> | ||
488 | <td class="paramtype">const <a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a> & </td> | ||
489 | <td class="paramname"><em>minStartColor</em> = <code><a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a>(255, 0, 0, 0)</code>, </td> | ||
490 | </tr> | ||
491 | <tr> | ||
492 | <td class="paramkey"></td> | ||
493 | <td></td> | ||
494 | <td class="paramtype">const <a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a> & </td> | ||
495 | <td class="paramname"><em>maxStartColor</em> = <code><a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a>(255, 255, 255, 255)</code>, </td> | ||
496 | </tr> | ||
497 | <tr> | ||
498 | <td class="paramkey"></td> | ||
499 | <td></td> | ||
500 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
501 | <td class="paramname"><em>lifeTimeMin</em> = <code>2000</code>, </td> | ||
502 | </tr> | ||
503 | <tr> | ||
504 | <td class="paramkey"></td> | ||
505 | <td></td> | ||
506 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
507 | <td class="paramname"><em>lifeTimeMax</em> = <code>4000</code>, </td> | ||
508 | </tr> | ||
509 | <tr> | ||
510 | <td class="paramkey"></td> | ||
511 | <td></td> | ||
512 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
513 | <td class="paramname"><em>maxAngleDegrees</em> = <code>0</code>, </td> | ||
514 | </tr> | ||
515 | <tr> | ||
516 | <td class="paramkey"></td> | ||
517 | <td></td> | ||
518 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a> & </td> | ||
519 | <td class="paramname"><em>minStartSize</em> = <code><a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a>(5.0f, 5.0f)</code>, </td> | ||
520 | </tr> | ||
521 | <tr> | ||
522 | <td class="paramkey"></td> | ||
523 | <td></td> | ||
524 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a> & </td> | ||
525 | <td class="paramname"><em>maxStartSize</em> = <code><a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a>(5.0f, 5.0f)</code> </td> | ||
526 | </tr> | ||
527 | <tr> | ||
528 | <td></td> | ||
529 | <td>)</td> | ||
530 | <td></td><td><code> [pure virtual]</code></td> | ||
531 | </tr> | ||
532 | </table> | ||
533 | </div> | ||
534 | <div class="memdoc"> | ||
535 | |||
536 | <p>Creates a box particle emitter. </p> | ||
537 | <dl><dt><b>Parameters:</b></dt><dd> | ||
538 | <table class="params"> | ||
539 | <tr><td class="paramname">box,:</td><td>The box for the emitter. </td></tr> | ||
540 | <tr><td class="paramname">direction,:</td><td>Direction and speed of particle emission. </td></tr> | ||
541 | <tr><td class="paramname">minParticlesPerSecond,:</td><td>Minimal amount of particles emitted per second. </td></tr> | ||
542 | <tr><td class="paramname">maxParticlesPerSecond,:</td><td>Maximal amount of particles emitted per second. </td></tr> | ||
543 | <tr><td class="paramname">minStartColor,:</td><td>Minimal initial start color of a particle. The real color of every particle is calculated as random interpolation between minStartColor and maxStartColor. </td></tr> | ||
544 | <tr><td class="paramname">maxStartColor,:</td><td>Maximal initial start color of a particle. The real color of every particle is calculated as random interpolation between minStartColor and maxStartColor. </td></tr> | ||
545 | <tr><td class="paramname">lifeTimeMin,:</td><td>Minimal lifetime of a particle, in milliseconds. </td></tr> | ||
546 | <tr><td class="paramname">lifeTimeMax,:</td><td>Maximal lifetime of a particle, in milliseconds. </td></tr> | ||
547 | <tr><td class="paramname">maxAngleDegrees,:</td><td>Maximal angle in degrees, the emitting direction of the particle will differ from the original direction. </td></tr> | ||
548 | <tr><td class="paramname">minStartSize,:</td><td>Minimal initial start size of a particle. The real size of every particle is calculated as random interpolation between minStartSize and maxStartSize. </td></tr> | ||
549 | <tr><td class="paramname">maxStartSize,:</td><td>Maximal initial start size of a particle. The real size of every particle is calculated as random interpolation between minStartSize and maxStartSize. </td></tr> | ||
550 | </table> | ||
551 | </dd> | ||
552 | </dl> | ||
553 | <dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to the created particle emitter. To set this emitter as new emitter of this particle system, just call <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#aececff4531482ce976f1859c40bf3f76" title="Sets the particle emitter, which creates the particles.">setEmitter()</a>. Note that you'll have to <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a> the returned pointer, after you don't need it any more, see <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">IReferenceCounted::drop()</a> for more informations. </dd></dl> | ||
554 | |||
555 | </div> | ||
556 | </div> | ||
557 | <a class="anchor" id="a191550f97d9f8a1ac7c6fefd78d84bf5"></a><!-- doxytag: member="irr::scene::IParticleSystemSceneNode::createCylinderEmitter" ref="a191550f97d9f8a1ac7c6fefd78d84bf5" args="(const core::vector3df &center, f32 radius, const core::vector3df &normal, f32 length, bool outlineOnly=false, const core::vector3df &direction=core::vector3df(0.0f, 0.03f, 0.0f), u32 minParticlesPerSecond=5, u32 maxParticlesPerSecond=10, const video::SColor &minStartColor=video::SColor(255, 0, 0, 0), const video::SColor &maxStartColor=video::SColor(255, 255, 255, 255), u32 lifeTimeMin=2000, u32 lifeTimeMax=4000, s32 maxAngleDegrees=0, const core::dimension2df &minStartSize=core::dimension2df(5.0f, 5.0f), const core::dimension2df &maxStartSize=core::dimension2df(5.0f, 5.0f))=0" --> | ||
558 | <div class="memitem"> | ||
559 | <div class="memproto"> | ||
560 | <table class="memname"> | ||
561 | <tr> | ||
562 | <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_particle_cylinder_emitter.html">IParticleCylinderEmitter</a>* irr::scene::IParticleSystemSceneNode::createCylinderEmitter </td> | ||
563 | <td>(</td> | ||
564 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> & </td> | ||
565 | <td class="paramname"><em>center</em>, </td> | ||
566 | </tr> | ||
567 | <tr> | ||
568 | <td class="paramkey"></td> | ||
569 | <td></td> | ||
570 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> </td> | ||
571 | <td class="paramname"><em>radius</em>, </td> | ||
572 | </tr> | ||
573 | <tr> | ||
574 | <td class="paramkey"></td> | ||
575 | <td></td> | ||
576 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> & </td> | ||
577 | <td class="paramname"><em>normal</em>, </td> | ||
578 | </tr> | ||
579 | <tr> | ||
580 | <td class="paramkey"></td> | ||
581 | <td></td> | ||
582 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> </td> | ||
583 | <td class="paramname"><em>length</em>, </td> | ||
584 | </tr> | ||
585 | <tr> | ||
586 | <td class="paramkey"></td> | ||
587 | <td></td> | ||
588 | <td class="paramtype">bool </td> | ||
589 | <td class="paramname"><em>outlineOnly</em> = <code>false</code>, </td> | ||
590 | </tr> | ||
591 | <tr> | ||
592 | <td class="paramkey"></td> | ||
593 | <td></td> | ||
594 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> & </td> | ||
595 | <td class="paramname"><em>direction</em> = <code><a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0.0f, 0.03f, 0.0f)</code>, </td> | ||
596 | </tr> | ||
597 | <tr> | ||
598 | <td class="paramkey"></td> | ||
599 | <td></td> | ||
600 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
601 | <td class="paramname"><em>minParticlesPerSecond</em> = <code>5</code>, </td> | ||
602 | </tr> | ||
603 | <tr> | ||
604 | <td class="paramkey"></td> | ||
605 | <td></td> | ||
606 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
607 | <td class="paramname"><em>maxParticlesPerSecond</em> = <code>10</code>, </td> | ||
608 | </tr> | ||
609 | <tr> | ||
610 | <td class="paramkey"></td> | ||
611 | <td></td> | ||
612 | <td class="paramtype">const <a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a> & </td> | ||
613 | <td class="paramname"><em>minStartColor</em> = <code><a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a>(255, 0, 0, 0)</code>, </td> | ||
614 | </tr> | ||
615 | <tr> | ||
616 | <td class="paramkey"></td> | ||
617 | <td></td> | ||
618 | <td class="paramtype">const <a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a> & </td> | ||
619 | <td class="paramname"><em>maxStartColor</em> = <code><a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a>(255, 255, 255, 255)</code>, </td> | ||
620 | </tr> | ||
621 | <tr> | ||
622 | <td class="paramkey"></td> | ||
623 | <td></td> | ||
624 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
625 | <td class="paramname"><em>lifeTimeMin</em> = <code>2000</code>, </td> | ||
626 | </tr> | ||
627 | <tr> | ||
628 | <td class="paramkey"></td> | ||
629 | <td></td> | ||
630 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
631 | <td class="paramname"><em>lifeTimeMax</em> = <code>4000</code>, </td> | ||
632 | </tr> | ||
633 | <tr> | ||
634 | <td class="paramkey"></td> | ||
635 | <td></td> | ||
636 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
637 | <td class="paramname"><em>maxAngleDegrees</em> = <code>0</code>, </td> | ||
638 | </tr> | ||
639 | <tr> | ||
640 | <td class="paramkey"></td> | ||
641 | <td></td> | ||
642 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a> & </td> | ||
643 | <td class="paramname"><em>minStartSize</em> = <code><a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a>(5.0f, 5.0f)</code>, </td> | ||
644 | </tr> | ||
645 | <tr> | ||
646 | <td class="paramkey"></td> | ||
647 | <td></td> | ||
648 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a> & </td> | ||
649 | <td class="paramname"><em>maxStartSize</em> = <code><a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a>(5.0f, 5.0f)</code> </td> | ||
650 | </tr> | ||
651 | <tr> | ||
652 | <td></td> | ||
653 | <td>)</td> | ||
654 | <td></td><td><code> [pure virtual]</code></td> | ||
655 | </tr> | ||
656 | </table> | ||
657 | </div> | ||
658 | <div class="memdoc"> | ||
659 | |||
660 | <p>Creates a particle emitter for emitting from a cylinder. </p> | ||
661 | <dl><dt><b>Parameters:</b></dt><dd> | ||
662 | <table class="params"> | ||
663 | <tr><td class="paramname">center,:</td><td>The center of the circle at the base of the cylinder </td></tr> | ||
664 | <tr><td class="paramname">radius,:</td><td>The thickness of the cylinder </td></tr> | ||
665 | <tr><td class="paramname">normal,:</td><td>Direction of the length of the cylinder </td></tr> | ||
666 | <tr><td class="paramname">length,:</td><td>The length of the the cylinder </td></tr> | ||
667 | <tr><td class="paramname">outlineOnly,:</td><td>Whether or not to put points inside the cylinder or on the outline only </td></tr> | ||
668 | <tr><td class="paramname">direction,:</td><td>Direction and speed of particle emission. </td></tr> | ||
669 | <tr><td class="paramname">minParticlesPerSecond,:</td><td>Minimal amount of particles emitted per second. </td></tr> | ||
670 | <tr><td class="paramname">maxParticlesPerSecond,:</td><td>Maximal amount of particles emitted per second. </td></tr> | ||
671 | <tr><td class="paramname">minStartColor,:</td><td>Minimal initial start color of a particle. The real color of every particle is calculated as random interpolation between minStartColor and maxStartColor. </td></tr> | ||
672 | <tr><td class="paramname">maxStartColor,:</td><td>Maximal initial start color of a particle. The real color of every particle is calculated as random interpolation between minStartColor and maxStartColor. </td></tr> | ||
673 | <tr><td class="paramname">lifeTimeMin,:</td><td>Minimal lifetime of a particle, in milliseconds. </td></tr> | ||
674 | <tr><td class="paramname">lifeTimeMax,:</td><td>Maximal lifetime of a particle, in milliseconds. </td></tr> | ||
675 | <tr><td class="paramname">maxAngleDegrees,:</td><td>Maximal angle in degrees, the emitting direction of the particle will differ from the original direction. </td></tr> | ||
676 | <tr><td class="paramname">minStartSize,:</td><td>Minimal initial start size of a particle. The real size of every particle is calculated as random interpolation between minStartSize and maxStartSize. </td></tr> | ||
677 | <tr><td class="paramname">maxStartSize,:</td><td>Maximal initial start size of a particle. The real size of every particle is calculated as random interpolation between minStartSize and maxStartSize. </td></tr> | ||
678 | </table> | ||
679 | </dd> | ||
680 | </dl> | ||
681 | <dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to the created particle emitter. To set this emitter as new emitter of this particle system, just call <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#aececff4531482ce976f1859c40bf3f76" title="Sets the particle emitter, which creates the particles.">setEmitter()</a>. Note that you'll have to <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a> the returned pointer, after you don't need it any more, see <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">IReferenceCounted::drop()</a> for more informations. </dd></dl> | ||
682 | |||
683 | </div> | ||
684 | </div> | ||
685 | <a class="anchor" id="a4a9c3ecdf6118267f312f9389bb24888"></a><!-- doxytag: member="irr::scene::IParticleSystemSceneNode::createFadeOutParticleAffector" ref="a4a9c3ecdf6118267f312f9389bb24888" args="(const video::SColor &targetColor=video::SColor(0, 0, 0, 0), u32 timeNeededToFadeOut=1000)=0" --> | ||
686 | <div class="memitem"> | ||
687 | <div class="memproto"> | ||
688 | <table class="memname"> | ||
689 | <tr> | ||
690 | <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_particle_fade_out_affector.html">IParticleFadeOutAffector</a>* irr::scene::IParticleSystemSceneNode::createFadeOutParticleAffector </td> | ||
691 | <td>(</td> | ||
692 | <td class="paramtype">const <a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a> & </td> | ||
693 | <td class="paramname"><em>targetColor</em> = <code><a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a>(0, 0, 0, 0)</code>, </td> | ||
694 | </tr> | ||
695 | <tr> | ||
696 | <td class="paramkey"></td> | ||
697 | <td></td> | ||
698 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
699 | <td class="paramname"><em>timeNeededToFadeOut</em> = <code>1000</code> </td> | ||
700 | </tr> | ||
701 | <tr> | ||
702 | <td></td> | ||
703 | <td>)</td> | ||
704 | <td></td><td><code> [pure virtual]</code></td> | ||
705 | </tr> | ||
706 | </table> | ||
707 | </div> | ||
708 | <div class="memdoc"> | ||
709 | |||
710 | <p>Creates a fade out particle affector. </p> | ||
711 | <p>This affector modifies the color of every particle and and reaches the final color when the particle dies. This affector looks really good, if the EMT_TRANSPARENT_ADD_COLOR material is used and the targetColor is video::SColor(0,0,0,0): Particles are fading out into void with this setting. </p> | ||
712 | <dl><dt><b>Parameters:</b></dt><dd> | ||
713 | <table class="params"> | ||
714 | <tr><td class="paramname">targetColor,:</td><td>Color whereto the color of the particle is changed. </td></tr> | ||
715 | <tr><td class="paramname">timeNeededToFadeOut,:</td><td>How much time in milli seconds should the affector need to change the color to the targetColor. </td></tr> | ||
716 | </table> | ||
717 | </dd> | ||
718 | </dl> | ||
719 | <dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to the created particle affector. To add this affector as new affector of this particle system, just call <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#a401f5afbbb748878011c5ceb7d447f8b" title="Adds new particle effector to the particle system.">addAffector()</a>. Note that you'll have to <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a> the returned pointer, after you don't need it any more, see <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">IReferenceCounted::drop()</a> for more informations. </dd></dl> | ||
720 | |||
721 | </div> | ||
722 | </div> | ||
723 | <a class="anchor" id="af06d3565f9c352bdcdf68bb2e3797c32"></a><!-- doxytag: member="irr::scene::IParticleSystemSceneNode::createGravityAffector" ref="af06d3565f9c352bdcdf68bb2e3797c32" args="(const core::vector3df &gravity=core::vector3df(0.0f,-0.03f, 0.0f), u32 timeForceLost=1000)=0" --> | ||
724 | <div class="memitem"> | ||
725 | <div class="memproto"> | ||
726 | <table class="memname"> | ||
727 | <tr> | ||
728 | <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_particle_gravity_affector.html">IParticleGravityAffector</a>* irr::scene::IParticleSystemSceneNode::createGravityAffector </td> | ||
729 | <td>(</td> | ||
730 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> & </td> | ||
731 | <td class="paramname"><em>gravity</em> = <code><a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0.0f,-0.03f, 0.0f)</code>, </td> | ||
732 | </tr> | ||
733 | <tr> | ||
734 | <td class="paramkey"></td> | ||
735 | <td></td> | ||
736 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
737 | <td class="paramname"><em>timeForceLost</em> = <code>1000</code> </td> | ||
738 | </tr> | ||
739 | <tr> | ||
740 | <td></td> | ||
741 | <td>)</td> | ||
742 | <td></td><td><code> [pure virtual]</code></td> | ||
743 | </tr> | ||
744 | </table> | ||
745 | </div> | ||
746 | <div class="memdoc"> | ||
747 | |||
748 | <p>Creates a gravity affector. </p> | ||
749 | <p>This affector modifies the direction of the particle. It assumes that the particle is fired out of the emitter with huge force, but is loosing this after some time and is catched by the gravity then. This affector is ideal for creating things like fountains. </p> | ||
750 | <dl><dt><b>Parameters:</b></dt><dd> | ||
751 | <table class="params"> | ||
752 | <tr><td class="paramname">gravity,:</td><td>Direction and force of gravity. </td></tr> | ||
753 | <tr><td class="paramname">timeForceLost,:</td><td>Time in milli seconds when the force of the emitter is totally lost and the particle does not move any more. This is the time where gravity fully affects the particle. </td></tr> | ||
754 | </table> | ||
755 | </dd> | ||
756 | </dl> | ||
757 | <dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to the created particle affector. To add this affector as new affector of this particle system, just call <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#a401f5afbbb748878011c5ceb7d447f8b" title="Adds new particle effector to the particle system.">addAffector()</a>. Note that you'll have to <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a> the returned pointer, after you don't need it any more, see <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">IReferenceCounted::drop()</a> for more informations. </dd></dl> | ||
758 | |||
759 | </div> | ||
760 | </div> | ||
761 | <a class="anchor" id="a7e08b7e74a5295fd167769d5ee5a5161"></a><!-- doxytag: member="irr::scene::IParticleSystemSceneNode::createMeshEmitter" ref="a7e08b7e74a5295fd167769d5ee5a5161" args="(scene::IMesh *mesh, bool useNormalDirection=true, const core::vector3df &direction=core::vector3df(0.0f, 0.03f, 0.0f), f32 normalDirectionModifier=100.0f, s32 mbNumber=-1, bool everyMeshVertex=false, u32 minParticlesPerSecond=5, u32 maxParticlesPerSecond=10, const video::SColor &minStartColor=video::SColor(255, 0, 0, 0), const video::SColor &maxStartColor=video::SColor(255, 255, 255, 255), u32 lifeTimeMin=2000, u32 lifeTimeMax=4000, s32 maxAngleDegrees=0, const core::dimension2df &minStartSize=core::dimension2df(5.0f, 5.0f), const core::dimension2df &maxStartSize=core::dimension2df(5.0f, 5.0f))=0" --> | ||
762 | <div class="memitem"> | ||
763 | <div class="memproto"> | ||
764 | <table class="memname"> | ||
765 | <tr> | ||
766 | <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_particle_mesh_emitter.html">IParticleMeshEmitter</a>* irr::scene::IParticleSystemSceneNode::createMeshEmitter </td> | ||
767 | <td>(</td> | ||
768 | <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_mesh.html">scene::IMesh</a> * </td> | ||
769 | <td class="paramname"><em>mesh</em>, </td> | ||
770 | </tr> | ||
771 | <tr> | ||
772 | <td class="paramkey"></td> | ||
773 | <td></td> | ||
774 | <td class="paramtype">bool </td> | ||
775 | <td class="paramname"><em>useNormalDirection</em> = <code>true</code>, </td> | ||
776 | </tr> | ||
777 | <tr> | ||
778 | <td class="paramkey"></td> | ||
779 | <td></td> | ||
780 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> & </td> | ||
781 | <td class="paramname"><em>direction</em> = <code><a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0.0f, 0.03f, 0.0f)</code>, </td> | ||
782 | </tr> | ||
783 | <tr> | ||
784 | <td class="paramkey"></td> | ||
785 | <td></td> | ||
786 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> </td> | ||
787 | <td class="paramname"><em>normalDirectionModifier</em> = <code>100.0f</code>, </td> | ||
788 | </tr> | ||
789 | <tr> | ||
790 | <td class="paramkey"></td> | ||
791 | <td></td> | ||
792 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
793 | <td class="paramname"><em>mbNumber</em> = <code>-1</code>, </td> | ||
794 | </tr> | ||
795 | <tr> | ||
796 | <td class="paramkey"></td> | ||
797 | <td></td> | ||
798 | <td class="paramtype">bool </td> | ||
799 | <td class="paramname"><em>everyMeshVertex</em> = <code>false</code>, </td> | ||
800 | </tr> | ||
801 | <tr> | ||
802 | <td class="paramkey"></td> | ||
803 | <td></td> | ||
804 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
805 | <td class="paramname"><em>minParticlesPerSecond</em> = <code>5</code>, </td> | ||
806 | </tr> | ||
807 | <tr> | ||
808 | <td class="paramkey"></td> | ||
809 | <td></td> | ||
810 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
811 | <td class="paramname"><em>maxParticlesPerSecond</em> = <code>10</code>, </td> | ||
812 | </tr> | ||
813 | <tr> | ||
814 | <td class="paramkey"></td> | ||
815 | <td></td> | ||
816 | <td class="paramtype">const <a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a> & </td> | ||
817 | <td class="paramname"><em>minStartColor</em> = <code><a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a>(255, 0, 0, 0)</code>, </td> | ||
818 | </tr> | ||
819 | <tr> | ||
820 | <td class="paramkey"></td> | ||
821 | <td></td> | ||
822 | <td class="paramtype">const <a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a> & </td> | ||
823 | <td class="paramname"><em>maxStartColor</em> = <code><a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a>(255, 255, 255, 255)</code>, </td> | ||
824 | </tr> | ||
825 | <tr> | ||
826 | <td class="paramkey"></td> | ||
827 | <td></td> | ||
828 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
829 | <td class="paramname"><em>lifeTimeMin</em> = <code>2000</code>, </td> | ||
830 | </tr> | ||
831 | <tr> | ||
832 | <td class="paramkey"></td> | ||
833 | <td></td> | ||
834 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
835 | <td class="paramname"><em>lifeTimeMax</em> = <code>4000</code>, </td> | ||
836 | </tr> | ||
837 | <tr> | ||
838 | <td class="paramkey"></td> | ||
839 | <td></td> | ||
840 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
841 | <td class="paramname"><em>maxAngleDegrees</em> = <code>0</code>, </td> | ||
842 | </tr> | ||
843 | <tr> | ||
844 | <td class="paramkey"></td> | ||
845 | <td></td> | ||
846 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a> & </td> | ||
847 | <td class="paramname"><em>minStartSize</em> = <code><a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a>(5.0f, 5.0f)</code>, </td> | ||
848 | </tr> | ||
849 | <tr> | ||
850 | <td class="paramkey"></td> | ||
851 | <td></td> | ||
852 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a> & </td> | ||
853 | <td class="paramname"><em>maxStartSize</em> = <code><a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a>(5.0f, 5.0f)</code> </td> | ||
854 | </tr> | ||
855 | <tr> | ||
856 | <td></td> | ||
857 | <td>)</td> | ||
858 | <td></td><td><code> [pure virtual]</code></td> | ||
859 | </tr> | ||
860 | </table> | ||
861 | </div> | ||
862 | <div class="memdoc"> | ||
863 | |||
864 | <p>Creates a mesh particle emitter. </p> | ||
865 | <dl><dt><b>Parameters:</b></dt><dd> | ||
866 | <table class="params"> | ||
867 | <tr><td class="paramname">mesh,:</td><td>Pointer to mesh to emit particles from </td></tr> | ||
868 | <tr><td class="paramname">useNormalDirection,:</td><td>If true, the direction of each particle created will be the normal of the vertex that it's emitting from. The normal is divided by the normalDirectionModifier parameter, which defaults to 100.0f. </td></tr> | ||
869 | <tr><td class="paramname">direction,:</td><td>Direction and speed of particle emission. </td></tr> | ||
870 | <tr><td class="paramname">normalDirectionModifier,:</td><td>If the emitter is using the normal direction then the normal of the vertex that is being emitted from is divided by this number. </td></tr> | ||
871 | <tr><td class="paramname">mbNumber,:</td><td>This allows you to specify a specific meshBuffer for the IMesh* to emit particles from. The default value is -1, which means a random meshBuffer picked from all of the meshes meshBuffers will be selected to pick a random vertex from. If the value is 0 or greater, it will only pick random vertices from the meshBuffer specified by this value. </td></tr> | ||
872 | <tr><td class="paramname">everyMeshVertex,:</td><td>If true, the emitter will emit between min/max particles every second, for every vertex in the mesh, if false, it will emit between min/max particles from random vertices in the mesh. </td></tr> | ||
873 | <tr><td class="paramname">minParticlesPerSecond,:</td><td>Minimal amount of particles emitted per second. </td></tr> | ||
874 | <tr><td class="paramname">maxParticlesPerSecond,:</td><td>Maximal amount of particles emitted per second. </td></tr> | ||
875 | <tr><td class="paramname">minStartColor,:</td><td>Minimal initial start color of a particle. The real color of every particle is calculated as random interpolation between minStartColor and maxStartColor. </td></tr> | ||
876 | <tr><td class="paramname">maxStartColor,:</td><td>Maximal initial start color of a particle. The real color of every particle is calculated as random interpolation between minStartColor and maxStartColor. </td></tr> | ||
877 | <tr><td class="paramname">lifeTimeMin,:</td><td>Minimal lifetime of a particle, in milliseconds. </td></tr> | ||
878 | <tr><td class="paramname">lifeTimeMax,:</td><td>Maximal lifetime of a particle, in milliseconds. </td></tr> | ||
879 | <tr><td class="paramname">maxAngleDegrees,:</td><td>Maximal angle in degrees, the emitting direction of the particle will differ from the original direction. </td></tr> | ||
880 | <tr><td class="paramname">minStartSize,:</td><td>Minimal initial start size of a particle. The real size of every particle is calculated as random interpolation between minStartSize and maxStartSize. </td></tr> | ||
881 | <tr><td class="paramname">maxStartSize,:</td><td>Maximal initial start size of a particle. The real size of every particle is calculated as random interpolation between minStartSize and maxStartSize. </td></tr> | ||
882 | </table> | ||
883 | </dd> | ||
884 | </dl> | ||
885 | <dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to the created particle emitter. To set this emitter as new emitter of this particle system, just call <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#aececff4531482ce976f1859c40bf3f76" title="Sets the particle emitter, which creates the particles.">setEmitter()</a>. Note that you'll have to <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a> the returned pointer, after you don't need it any more, see <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">IReferenceCounted::drop()</a> for more informations. </dd></dl> | ||
886 | |||
887 | </div> | ||
888 | </div> | ||
889 | <a class="anchor" id="a99e2549ad185f0c23b73f43869c60ab8"></a><!-- doxytag: member="irr::scene::IParticleSystemSceneNode::createPointEmitter" ref="a99e2549ad185f0c23b73f43869c60ab8" args="(const core::vector3df &direction=core::vector3df(0.0f, 0.03f, 0.0f), u32 minParticlesPerSecond=5, u32 maxParticlesPerSecond=10, const video::SColor &minStartColor=video::SColor(255, 0, 0, 0), const video::SColor &maxStartColor=video::SColor(255, 255, 255, 255), u32 lifeTimeMin=2000, u32 lifeTimeMax=4000, s32 maxAngleDegrees=0, const core::dimension2df &minStartSize=core::dimension2df(5.0f, 5.0f), const core::dimension2df &maxStartSize=core::dimension2df(5.0f, 5.0f))=0" --> | ||
890 | <div class="memitem"> | ||
891 | <div class="memproto"> | ||
892 | <table class="memname"> | ||
893 | <tr> | ||
894 | <td class="memname">virtual <a class="el" href="namespaceirr_1_1scene.html#a719d36e28f832373a9aa9596bde0da89">IParticlePointEmitter</a>* irr::scene::IParticleSystemSceneNode::createPointEmitter </td> | ||
895 | <td>(</td> | ||
896 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> & </td> | ||
897 | <td class="paramname"><em>direction</em> = <code><a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0.0f, 0.03f, 0.0f)</code>, </td> | ||
898 | </tr> | ||
899 | <tr> | ||
900 | <td class="paramkey"></td> | ||
901 | <td></td> | ||
902 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
903 | <td class="paramname"><em>minParticlesPerSecond</em> = <code>5</code>, </td> | ||
904 | </tr> | ||
905 | <tr> | ||
906 | <td class="paramkey"></td> | ||
907 | <td></td> | ||
908 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
909 | <td class="paramname"><em>maxParticlesPerSecond</em> = <code>10</code>, </td> | ||
910 | </tr> | ||
911 | <tr> | ||
912 | <td class="paramkey"></td> | ||
913 | <td></td> | ||
914 | <td class="paramtype">const <a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a> & </td> | ||
915 | <td class="paramname"><em>minStartColor</em> = <code><a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a>(255, 0, 0, 0)</code>, </td> | ||
916 | </tr> | ||
917 | <tr> | ||
918 | <td class="paramkey"></td> | ||
919 | <td></td> | ||
920 | <td class="paramtype">const <a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a> & </td> | ||
921 | <td class="paramname"><em>maxStartColor</em> = <code><a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a>(255, 255, 255, 255)</code>, </td> | ||
922 | </tr> | ||
923 | <tr> | ||
924 | <td class="paramkey"></td> | ||
925 | <td></td> | ||
926 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
927 | <td class="paramname"><em>lifeTimeMin</em> = <code>2000</code>, </td> | ||
928 | </tr> | ||
929 | <tr> | ||
930 | <td class="paramkey"></td> | ||
931 | <td></td> | ||
932 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
933 | <td class="paramname"><em>lifeTimeMax</em> = <code>4000</code>, </td> | ||
934 | </tr> | ||
935 | <tr> | ||
936 | <td class="paramkey"></td> | ||
937 | <td></td> | ||
938 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
939 | <td class="paramname"><em>maxAngleDegrees</em> = <code>0</code>, </td> | ||
940 | </tr> | ||
941 | <tr> | ||
942 | <td class="paramkey"></td> | ||
943 | <td></td> | ||
944 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a> & </td> | ||
945 | <td class="paramname"><em>minStartSize</em> = <code><a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a>(5.0f, 5.0f)</code>, </td> | ||
946 | </tr> | ||
947 | <tr> | ||
948 | <td class="paramkey"></td> | ||
949 | <td></td> | ||
950 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a> & </td> | ||
951 | <td class="paramname"><em>maxStartSize</em> = <code><a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a>(5.0f, 5.0f)</code> </td> | ||
952 | </tr> | ||
953 | <tr> | ||
954 | <td></td> | ||
955 | <td>)</td> | ||
956 | <td></td><td><code> [pure virtual]</code></td> | ||
957 | </tr> | ||
958 | </table> | ||
959 | </div> | ||
960 | <div class="memdoc"> | ||
961 | |||
962 | <p>Creates a point particle emitter. </p> | ||
963 | <dl><dt><b>Parameters:</b></dt><dd> | ||
964 | <table class="params"> | ||
965 | <tr><td class="paramname">direction,:</td><td>Direction and speed of particle emission. </td></tr> | ||
966 | <tr><td class="paramname">minParticlesPerSecond,:</td><td>Minimal amount of particles emitted per second. </td></tr> | ||
967 | <tr><td class="paramname">maxParticlesPerSecond,:</td><td>Maximal amount of particles emitted per second. </td></tr> | ||
968 | <tr><td class="paramname">minStartColor,:</td><td>Minimal initial start color of a particle. The real color of every particle is calculated as random interpolation between minStartColor and maxStartColor. </td></tr> | ||
969 | <tr><td class="paramname">maxStartColor,:</td><td>Maximal initial start color of a particle. The real color of every particle is calculated as random interpolation between minStartColor and maxStartColor. </td></tr> | ||
970 | <tr><td class="paramname">lifeTimeMin,:</td><td>Minimal lifetime of a particle, in milliseconds. </td></tr> | ||
971 | <tr><td class="paramname">lifeTimeMax,:</td><td>Maximal lifetime of a particle, in milliseconds. </td></tr> | ||
972 | <tr><td class="paramname">maxAngleDegrees,:</td><td>Maximal angle in degrees, the emitting direction of the particle will differ from the original direction. </td></tr> | ||
973 | <tr><td class="paramname">minStartSize,:</td><td>Minimal initial start size of a particle. The real size of every particle is calculated as random interpolation between minStartSize and maxStartSize. </td></tr> | ||
974 | <tr><td class="paramname">maxStartSize,:</td><td>Maximal initial start size of a particle. The real size of every particle is calculated as random interpolation between minStartSize and maxStartSize. </td></tr> | ||
975 | </table> | ||
976 | </dd> | ||
977 | </dl> | ||
978 | <dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to the created particle emitter. To set this emitter as new emitter of this particle system, just call <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#aececff4531482ce976f1859c40bf3f76" title="Sets the particle emitter, which creates the particles.">setEmitter()</a>. Note that you'll have to <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a> the returned pointer, after you don't need it any more, see <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">IReferenceCounted::drop()</a> for more informations. </dd></dl> | ||
979 | |||
980 | </div> | ||
981 | </div> | ||
982 | <a class="anchor" id="adee7e28b730ce82ae78e01ccccfff98e"></a><!-- doxytag: member="irr::scene::IParticleSystemSceneNode::createRingEmitter" ref="adee7e28b730ce82ae78e01ccccfff98e" args="(const core::vector3df &center, f32 radius, f32 ringThickness, const core::vector3df &direction=core::vector3df(0.0f, 0.03f, 0.0f), u32 minParticlesPerSecond=5, u32 maxParticlesPerSecond=10, const video::SColor &minStartColor=video::SColor(255, 0, 0, 0), const video::SColor &maxStartColor=video::SColor(255, 255, 255, 255), u32 lifeTimeMin=2000, u32 lifeTimeMax=4000, s32 maxAngleDegrees=0, const core::dimension2df &minStartSize=core::dimension2df(5.0f, 5.0f), const core::dimension2df &maxStartSize=core::dimension2df(5.0f, 5.0f))=0" --> | ||
983 | <div class="memitem"> | ||
984 | <div class="memproto"> | ||
985 | <table class="memname"> | ||
986 | <tr> | ||
987 | <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_particle_ring_emitter.html">IParticleRingEmitter</a>* irr::scene::IParticleSystemSceneNode::createRingEmitter </td> | ||
988 | <td>(</td> | ||
989 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> & </td> | ||
990 | <td class="paramname"><em>center</em>, </td> | ||
991 | </tr> | ||
992 | <tr> | ||
993 | <td class="paramkey"></td> | ||
994 | <td></td> | ||
995 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> </td> | ||
996 | <td class="paramname"><em>radius</em>, </td> | ||
997 | </tr> | ||
998 | <tr> | ||
999 | <td class="paramkey"></td> | ||
1000 | <td></td> | ||
1001 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> </td> | ||
1002 | <td class="paramname"><em>ringThickness</em>, </td> | ||
1003 | </tr> | ||
1004 | <tr> | ||
1005 | <td class="paramkey"></td> | ||
1006 | <td></td> | ||
1007 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> & </td> | ||
1008 | <td class="paramname"><em>direction</em> = <code><a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0.0f, 0.03f, 0.0f)</code>, </td> | ||
1009 | </tr> | ||
1010 | <tr> | ||
1011 | <td class="paramkey"></td> | ||
1012 | <td></td> | ||
1013 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
1014 | <td class="paramname"><em>minParticlesPerSecond</em> = <code>5</code>, </td> | ||
1015 | </tr> | ||
1016 | <tr> | ||
1017 | <td class="paramkey"></td> | ||
1018 | <td></td> | ||
1019 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
1020 | <td class="paramname"><em>maxParticlesPerSecond</em> = <code>10</code>, </td> | ||
1021 | </tr> | ||
1022 | <tr> | ||
1023 | <td class="paramkey"></td> | ||
1024 | <td></td> | ||
1025 | <td class="paramtype">const <a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a> & </td> | ||
1026 | <td class="paramname"><em>minStartColor</em> = <code><a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a>(255, 0, 0, 0)</code>, </td> | ||
1027 | </tr> | ||
1028 | <tr> | ||
1029 | <td class="paramkey"></td> | ||
1030 | <td></td> | ||
1031 | <td class="paramtype">const <a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a> & </td> | ||
1032 | <td class="paramname"><em>maxStartColor</em> = <code><a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a>(255, 255, 255, 255)</code>, </td> | ||
1033 | </tr> | ||
1034 | <tr> | ||
1035 | <td class="paramkey"></td> | ||
1036 | <td></td> | ||
1037 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
1038 | <td class="paramname"><em>lifeTimeMin</em> = <code>2000</code>, </td> | ||
1039 | </tr> | ||
1040 | <tr> | ||
1041 | <td class="paramkey"></td> | ||
1042 | <td></td> | ||
1043 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
1044 | <td class="paramname"><em>lifeTimeMax</em> = <code>4000</code>, </td> | ||
1045 | </tr> | ||
1046 | <tr> | ||
1047 | <td class="paramkey"></td> | ||
1048 | <td></td> | ||
1049 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
1050 | <td class="paramname"><em>maxAngleDegrees</em> = <code>0</code>, </td> | ||
1051 | </tr> | ||
1052 | <tr> | ||
1053 | <td class="paramkey"></td> | ||
1054 | <td></td> | ||
1055 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a> & </td> | ||
1056 | <td class="paramname"><em>minStartSize</em> = <code><a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a>(5.0f, 5.0f)</code>, </td> | ||
1057 | </tr> | ||
1058 | <tr> | ||
1059 | <td class="paramkey"></td> | ||
1060 | <td></td> | ||
1061 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a> & </td> | ||
1062 | <td class="paramname"><em>maxStartSize</em> = <code><a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a>(5.0f, 5.0f)</code> </td> | ||
1063 | </tr> | ||
1064 | <tr> | ||
1065 | <td></td> | ||
1066 | <td>)</td> | ||
1067 | <td></td><td><code> [pure virtual]</code></td> | ||
1068 | </tr> | ||
1069 | </table> | ||
1070 | </div> | ||
1071 | <div class="memdoc"> | ||
1072 | |||
1073 | <p>Creates a ring particle emitter. </p> | ||
1074 | <dl><dt><b>Parameters:</b></dt><dd> | ||
1075 | <table class="params"> | ||
1076 | <tr><td class="paramname">center,:</td><td>Center of ring </td></tr> | ||
1077 | <tr><td class="paramname">radius,:</td><td>Distance of points from center, points will be rotated around the Y axis at a random 360 degrees and will then be shifted by the provided ringThickness values in each axis. </td></tr> | ||
1078 | <tr><td class="paramname">ringThickness</td><td>: thickness of the ring or how wide the ring is </td></tr> | ||
1079 | <tr><td class="paramname">direction,:</td><td>Direction and speed of particle emission. </td></tr> | ||
1080 | <tr><td class="paramname">minParticlesPerSecond,:</td><td>Minimal amount of particles emitted per second. </td></tr> | ||
1081 | <tr><td class="paramname">maxParticlesPerSecond,:</td><td>Maximal amount of particles emitted per second. </td></tr> | ||
1082 | <tr><td class="paramname">minStartColor,:</td><td>Minimal initial start color of a particle. The real color of every particle is calculated as random interpolation between minStartColor and maxStartColor. </td></tr> | ||
1083 | <tr><td class="paramname">maxStartColor,:</td><td>Maximal initial start color of a particle. The real color of every particle is calculated as random interpolation between minStartColor and maxStartColor. </td></tr> | ||
1084 | <tr><td class="paramname">lifeTimeMin,:</td><td>Minimal lifetime of a particle, in milliseconds. </td></tr> | ||
1085 | <tr><td class="paramname">lifeTimeMax,:</td><td>Maximal lifetime of a particle, in milliseconds. </td></tr> | ||
1086 | <tr><td class="paramname">maxAngleDegrees,:</td><td>Maximal angle in degrees, the emitting direction of the particle will differ from the original direction. </td></tr> | ||
1087 | <tr><td class="paramname">minStartSize,:</td><td>Minimal initial start size of a particle. The real size of every particle is calculated as random interpolation between minStartSize and maxStartSize. </td></tr> | ||
1088 | <tr><td class="paramname">maxStartSize,:</td><td>Maximal initial start size of a particle. The real size of every particle is calculated as random interpolation between minStartSize and maxStartSize. </td></tr> | ||
1089 | </table> | ||
1090 | </dd> | ||
1091 | </dl> | ||
1092 | <dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to the created particle emitter. To set this emitter as new emitter of this particle system, just call <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#aececff4531482ce976f1859c40bf3f76" title="Sets the particle emitter, which creates the particles.">setEmitter()</a>. Note that you'll have to <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a> the returned pointer, after you don't need it any more, see <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">IReferenceCounted::drop()</a> for more informations. </dd></dl> | ||
1093 | |||
1094 | </div> | ||
1095 | </div> | ||
1096 | <a class="anchor" id="a7a09b7ebc0d4a2d164233c42689623d6"></a><!-- doxytag: member="irr::scene::IParticleSystemSceneNode::createRotationAffector" ref="a7a09b7ebc0d4a2d164233c42689623d6" args="(const core::vector3df &speed=core::vector3df(5.0f, 5.0f, 5.0f), const core::vector3df &pivotPoint=core::vector3df(0.0f, 0.0f, 0.0f))=0" --> | ||
1097 | <div class="memitem"> | ||
1098 | <div class="memproto"> | ||
1099 | <table class="memname"> | ||
1100 | <tr> | ||
1101 | <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_particle_rotation_affector.html">IParticleRotationAffector</a>* irr::scene::IParticleSystemSceneNode::createRotationAffector </td> | ||
1102 | <td>(</td> | ||
1103 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> & </td> | ||
1104 | <td class="paramname"><em>speed</em> = <code><a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(5.0f, 5.0f, 5.0f)</code>, </td> | ||
1105 | </tr> | ||
1106 | <tr> | ||
1107 | <td class="paramkey"></td> | ||
1108 | <td></td> | ||
1109 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> & </td> | ||
1110 | <td class="paramname"><em>pivotPoint</em> = <code><a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0.0f, 0.0f, 0.0f)</code> </td> | ||
1111 | </tr> | ||
1112 | <tr> | ||
1113 | <td></td> | ||
1114 | <td>)</td> | ||
1115 | <td></td><td><code> [pure virtual]</code></td> | ||
1116 | </tr> | ||
1117 | </table> | ||
1118 | </div> | ||
1119 | <div class="memdoc"> | ||
1120 | |||
1121 | <p>Creates a rotation affector. </p> | ||
1122 | <p>This affector modifies the positions of the particles and attracts them to a specified point at a specified speed per second. </p> | ||
1123 | <dl><dt><b>Parameters:</b></dt><dd> | ||
1124 | <table class="params"> | ||
1125 | <tr><td class="paramname">speed,:</td><td>Rotation in degrees per second </td></tr> | ||
1126 | <tr><td class="paramname">pivotPoint,:</td><td>Point to rotate the particles around </td></tr> | ||
1127 | </table> | ||
1128 | </dd> | ||
1129 | </dl> | ||
1130 | <dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to the created particle affector. To add this affector as new affector of this particle system, just call <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#a401f5afbbb748878011c5ceb7d447f8b" title="Adds new particle effector to the particle system.">addAffector()</a>. Note that you'll have to <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a> the returned pointer, after you don't need it any more, see <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">IReferenceCounted::drop()</a> for more informations. </dd></dl> | ||
1131 | |||
1132 | </div> | ||
1133 | </div> | ||
1134 | <a class="anchor" id="a015692bb57e0b6dfff1de96975b3bc74"></a><!-- doxytag: member="irr::scene::IParticleSystemSceneNode::createScaleParticleAffector" ref="a015692bb57e0b6dfff1de96975b3bc74" args="(const core::dimension2df &scaleTo=core::dimension2df(1.0f, 1.0f))=0" --> | ||
1135 | <div class="memitem"> | ||
1136 | <div class="memproto"> | ||
1137 | <table class="memname"> | ||
1138 | <tr> | ||
1139 | <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_particle_affector.html">IParticleAffector</a>* irr::scene::IParticleSystemSceneNode::createScaleParticleAffector </td> | ||
1140 | <td>(</td> | ||
1141 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a> & </td> | ||
1142 | <td class="paramname"><em>scaleTo</em> = <code><a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a>(1.0f, 1.0f)</code></td><td>)</td> | ||
1143 | <td><code> [pure virtual]</code></td> | ||
1144 | </tr> | ||
1145 | </table> | ||
1146 | </div> | ||
1147 | <div class="memdoc"> | ||
1148 | |||
1149 | <p>Creates a scale particle affector. </p> | ||
1150 | <p>This affector scales the particle to the a multiple of its size defined by the scaleTo variable. </p> | ||
1151 | <dl><dt><b>Parameters:</b></dt><dd> | ||
1152 | <table class="params"> | ||
1153 | <tr><td class="paramname">scaleTo,:</td><td>multiple of the size which the particle will be scaled to until deletion </td></tr> | ||
1154 | </table> | ||
1155 | </dd> | ||
1156 | </dl> | ||
1157 | <dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to the created particle affector. To add this affector as new affector of this particle system, just call <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#a401f5afbbb748878011c5ceb7d447f8b" title="Adds new particle effector to the particle system.">addAffector()</a>. Note that you'll have to <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a> the returned pointer, after you don't need it any more, see <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">IReferenceCounted::drop()</a> for more information. </dd></dl> | ||
1158 | |||
1159 | </div> | ||
1160 | </div> | ||
1161 | <a class="anchor" id="abb4fe6b6346ede961805166fc5355fef"></a><!-- doxytag: member="irr::scene::IParticleSystemSceneNode::createSphereEmitter" ref="abb4fe6b6346ede961805166fc5355fef" args="(const core::vector3df &center, f32 radius, const core::vector3df &direction=core::vector3df(0.0f, 0.03f, 0.0f), u32 minParticlesPerSecond=5, u32 maxParticlesPerSecond=10, const video::SColor &minStartColor=video::SColor(255, 0, 0, 0), const video::SColor &maxStartColor=video::SColor(255, 255, 255, 255), u32 lifeTimeMin=2000, u32 lifeTimeMax=4000, s32 maxAngleDegrees=0, const core::dimension2df &minStartSize=core::dimension2df(5.0f, 5.0f), const core::dimension2df &maxStartSize=core::dimension2df(5.0f, 5.0f))=0" --> | ||
1162 | <div class="memitem"> | ||
1163 | <div class="memproto"> | ||
1164 | <table class="memname"> | ||
1165 | <tr> | ||
1166 | <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_particle_sphere_emitter.html">IParticleSphereEmitter</a>* irr::scene::IParticleSystemSceneNode::createSphereEmitter </td> | ||
1167 | <td>(</td> | ||
1168 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> & </td> | ||
1169 | <td class="paramname"><em>center</em>, </td> | ||
1170 | </tr> | ||
1171 | <tr> | ||
1172 | <td class="paramkey"></td> | ||
1173 | <td></td> | ||
1174 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> </td> | ||
1175 | <td class="paramname"><em>radius</em>, </td> | ||
1176 | </tr> | ||
1177 | <tr> | ||
1178 | <td class="paramkey"></td> | ||
1179 | <td></td> | ||
1180 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> & </td> | ||
1181 | <td class="paramname"><em>direction</em> = <code><a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0.0f, 0.03f, 0.0f)</code>, </td> | ||
1182 | </tr> | ||
1183 | <tr> | ||
1184 | <td class="paramkey"></td> | ||
1185 | <td></td> | ||
1186 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
1187 | <td class="paramname"><em>minParticlesPerSecond</em> = <code>5</code>, </td> | ||
1188 | </tr> | ||
1189 | <tr> | ||
1190 | <td class="paramkey"></td> | ||
1191 | <td></td> | ||
1192 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
1193 | <td class="paramname"><em>maxParticlesPerSecond</em> = <code>10</code>, </td> | ||
1194 | </tr> | ||
1195 | <tr> | ||
1196 | <td class="paramkey"></td> | ||
1197 | <td></td> | ||
1198 | <td class="paramtype">const <a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a> & </td> | ||
1199 | <td class="paramname"><em>minStartColor</em> = <code><a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a>(255, 0, 0, 0)</code>, </td> | ||
1200 | </tr> | ||
1201 | <tr> | ||
1202 | <td class="paramkey"></td> | ||
1203 | <td></td> | ||
1204 | <td class="paramtype">const <a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a> & </td> | ||
1205 | <td class="paramname"><em>maxStartColor</em> = <code><a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a>(255, 255, 255, 255)</code>, </td> | ||
1206 | </tr> | ||
1207 | <tr> | ||
1208 | <td class="paramkey"></td> | ||
1209 | <td></td> | ||
1210 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
1211 | <td class="paramname"><em>lifeTimeMin</em> = <code>2000</code>, </td> | ||
1212 | </tr> | ||
1213 | <tr> | ||
1214 | <td class="paramkey"></td> | ||
1215 | <td></td> | ||
1216 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
1217 | <td class="paramname"><em>lifeTimeMax</em> = <code>4000</code>, </td> | ||
1218 | </tr> | ||
1219 | <tr> | ||
1220 | <td class="paramkey"></td> | ||
1221 | <td></td> | ||
1222 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
1223 | <td class="paramname"><em>maxAngleDegrees</em> = <code>0</code>, </td> | ||
1224 | </tr> | ||
1225 | <tr> | ||
1226 | <td class="paramkey"></td> | ||
1227 | <td></td> | ||
1228 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a> & </td> | ||
1229 | <td class="paramname"><em>minStartSize</em> = <code><a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a>(5.0f, 5.0f)</code>, </td> | ||
1230 | </tr> | ||
1231 | <tr> | ||
1232 | <td class="paramkey"></td> | ||
1233 | <td></td> | ||
1234 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a> & </td> | ||
1235 | <td class="paramname"><em>maxStartSize</em> = <code><a class="el" href="namespaceirr_1_1core.html#af6dc5c45ff13e7712758c827ff58676b">core::dimension2df</a>(5.0f, 5.0f)</code> </td> | ||
1236 | </tr> | ||
1237 | <tr> | ||
1238 | <td></td> | ||
1239 | <td>)</td> | ||
1240 | <td></td><td><code> [pure virtual]</code></td> | ||
1241 | </tr> | ||
1242 | </table> | ||
1243 | </div> | ||
1244 | <div class="memdoc"> | ||
1245 | |||
1246 | <p>Creates a sphere particle emitter. </p> | ||
1247 | <dl><dt><b>Parameters:</b></dt><dd> | ||
1248 | <table class="params"> | ||
1249 | <tr><td class="paramname">center,:</td><td>Center of sphere </td></tr> | ||
1250 | <tr><td class="paramname">radius,:</td><td>Radius of sphere </td></tr> | ||
1251 | <tr><td class="paramname">direction,:</td><td>Direction and speed of particle emission. </td></tr> | ||
1252 | <tr><td class="paramname">minParticlesPerSecond,:</td><td>Minimal amount of particles emitted per second. </td></tr> | ||
1253 | <tr><td class="paramname">maxParticlesPerSecond,:</td><td>Maximal amount of particles emitted per second. </td></tr> | ||
1254 | <tr><td class="paramname">minStartColor,:</td><td>Minimal initial start color of a particle. The real color of every particle is calculated as random interpolation between minStartColor and maxStartColor. </td></tr> | ||
1255 | <tr><td class="paramname">maxStartColor,:</td><td>Maximal initial start color of a particle. The real color of every particle is calculated as random interpolation between minStartColor and maxStartColor. </td></tr> | ||
1256 | <tr><td class="paramname">lifeTimeMin,:</td><td>Minimal lifetime of a particle, in milliseconds. </td></tr> | ||
1257 | <tr><td class="paramname">lifeTimeMax,:</td><td>Maximal lifetime of a particle, in milliseconds. </td></tr> | ||
1258 | <tr><td class="paramname">maxAngleDegrees,:</td><td>Maximal angle in degrees, the emitting direction of the particle will differ from the original direction. </td></tr> | ||
1259 | <tr><td class="paramname">minStartSize,:</td><td>Minimal initial start size of a particle. The real size of every particle is calculated as random interpolation between minStartSize and maxStartSize. </td></tr> | ||
1260 | <tr><td class="paramname">maxStartSize,:</td><td>Maximal initial start size of a particle. The real size of every particle is calculated as random interpolation between minStartSize and maxStartSize. </td></tr> | ||
1261 | </table> | ||
1262 | </dd> | ||
1263 | </dl> | ||
1264 | <dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to the created particle emitter. To set this emitter as new emitter of this particle system, just call <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#aececff4531482ce976f1859c40bf3f76" title="Sets the particle emitter, which creates the particles.">setEmitter()</a>. Note that you'll have to <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a> the returned pointer, after you don't need it any more, see <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">IReferenceCounted::drop()</a> for more informations. </dd></dl> | ||
1265 | |||
1266 | </div> | ||
1267 | </div> | ||
1268 | <a class="anchor" id="aac6245c300b7226cb2b911b0ea642cec"></a><!-- doxytag: member="irr::scene::IParticleSystemSceneNode::doParticleSystem" ref="aac6245c300b7226cb2b911b0ea642cec" args="(u32 time)=0" --> | ||
1269 | <div class="memitem"> | ||
1270 | <div class="memproto"> | ||
1271 | <table class="memname"> | ||
1272 | <tr> | ||
1273 | <td class="memname">virtual void irr::scene::IParticleSystemSceneNode::doParticleSystem </td> | ||
1274 | <td>(</td> | ||
1275 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
1276 | <td class="paramname"><em>time</em></td><td>)</td> | ||
1277 | <td><code> [pure virtual]</code></td> | ||
1278 | </tr> | ||
1279 | </table> | ||
1280 | </div> | ||
1281 | <div class="memdoc"> | ||
1282 | <p>Do manually update the particles. This should only be called when you want to render the node outside the scenegraph, as the node will care about this otherwise automatically. </p> | ||
1283 | |||
1284 | </div> | ||
1285 | </div> | ||
1286 | <a class="anchor" id="a3a9159e6ec5869814fdf879c5a7c41a3"></a><!-- doxytag: member="irr::scene::IParticleSystemSceneNode::getAffectors" ref="a3a9159e6ec5869814fdf879c5a7c41a3" args="() const =0" --> | ||
1287 | <div class="memitem"> | ||
1288 | <div class="memproto"> | ||
1289 | <table class="memname"> | ||
1290 | <tr> | ||
1291 | <td class="memname">virtual const <a class="el" href="classirr_1_1core_1_1list.html">core::list</a><<a class="el" href="classirr_1_1scene_1_1_i_particle_affector.html">IParticleAffector</a>*>& irr::scene::IParticleSystemSceneNode::getAffectors </td> | ||
1292 | <td>(</td> | ||
1293 | <td class="paramname"></td><td>)</td> | ||
1294 | <td> const<code> [pure virtual]</code></td> | ||
1295 | </tr> | ||
1296 | </table> | ||
1297 | </div> | ||
1298 | <div class="memdoc"> | ||
1299 | |||
1300 | <p>Get a list of all particle affectors. </p> | ||
1301 | <dl class="return"><dt><b>Returns:</b></dt><dd>The list of particle affectors attached to this node. </dd></dl> | ||
1302 | |||
1303 | </div> | ||
1304 | </div> | ||
1305 | <a class="anchor" id="a2f1a12f030ad5aadfd8d1be24021c7d5"></a><!-- doxytag: member="irr::scene::IParticleSystemSceneNode::getEmitter" ref="a2f1a12f030ad5aadfd8d1be24021c7d5" args="()=0" --> | ||
1306 | <div class="memitem"> | ||
1307 | <div class="memproto"> | ||
1308 | <table class="memname"> | ||
1309 | <tr> | ||
1310 | <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_particle_emitter.html">IParticleEmitter</a>* irr::scene::IParticleSystemSceneNode::getEmitter </td> | ||
1311 | <td>(</td> | ||
1312 | <td class="paramname"></td><td>)</td> | ||
1313 | <td><code> [pure virtual]</code></td> | ||
1314 | </tr> | ||
1315 | </table> | ||
1316 | </div> | ||
1317 | <div class="memdoc"> | ||
1318 | |||
1319 | <p>Gets the particle emitter, which creates the particles. </p> | ||
1320 | <dl class="return"><dt><b>Returns:</b></dt><dd>The particle emitter. Can be 0 if none is set. </dd></dl> | ||
1321 | |||
1322 | </div> | ||
1323 | </div> | ||
1324 | <a class="anchor" id="a96df4c07ee0c480cc2e51e157be308c6"></a><!-- doxytag: member="irr::scene::IParticleSystemSceneNode::removeAllAffectors" ref="a96df4c07ee0c480cc2e51e157be308c6" args="()=0" --> | ||
1325 | <div class="memitem"> | ||
1326 | <div class="memproto"> | ||
1327 | <table class="memname"> | ||
1328 | <tr> | ||
1329 | <td class="memname">virtual void irr::scene::IParticleSystemSceneNode::removeAllAffectors </td> | ||
1330 | <td>(</td> | ||
1331 | <td class="paramname"></td><td>)</td> | ||
1332 | <td><code> [pure virtual]</code></td> | ||
1333 | </tr> | ||
1334 | </table> | ||
1335 | </div> | ||
1336 | <div class="memdoc"> | ||
1337 | |||
1338 | <p>Removes all particle affectors in the particle system. </p> | ||
1339 | |||
1340 | </div> | ||
1341 | </div> | ||
1342 | <a class="anchor" id="aececff4531482ce976f1859c40bf3f76"></a><!-- doxytag: member="irr::scene::IParticleSystemSceneNode::setEmitter" ref="aececff4531482ce976f1859c40bf3f76" args="(IParticleEmitter *emitter)=0" --> | ||
1343 | <div class="memitem"> | ||
1344 | <div class="memproto"> | ||
1345 | <table class="memname"> | ||
1346 | <tr> | ||
1347 | <td class="memname">virtual void irr::scene::IParticleSystemSceneNode::setEmitter </td> | ||
1348 | <td>(</td> | ||
1349 | <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_particle_emitter.html">IParticleEmitter</a> * </td> | ||
1350 | <td class="paramname"><em>emitter</em></td><td>)</td> | ||
1351 | <td><code> [pure virtual]</code></td> | ||
1352 | </tr> | ||
1353 | </table> | ||
1354 | </div> | ||
1355 | <div class="memdoc"> | ||
1356 | |||
1357 | <p>Sets the particle emitter, which creates the particles. </p> | ||
1358 | <p>A particle emitter can be created using one of the createEmitter methods. For example to create and use a simple PointEmitter, call IParticleEmitter* p = <a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html#a99e2549ad185f0c23b73f43869c60ab8" title="Creates a point particle emitter.">createPointEmitter()</a>; setEmitter(p); p-><a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a>; </p> | ||
1359 | <dl><dt><b>Parameters:</b></dt><dd> | ||
1360 | <table class="params"> | ||
1361 | <tr><td class="paramname">emitter,:</td><td>Sets the particle emitter. You can set this to 0 for removing the current emitter and stopping the particle system emitting new particles. </td></tr> | ||
1362 | </table> | ||
1363 | </dd> | ||
1364 | </dl> | ||
1365 | |||
1366 | </div> | ||
1367 | </div> | ||
1368 | <a class="anchor" id="adc1c12bd7bf1a075f00c5dafa3aff266"></a><!-- doxytag: member="irr::scene::IParticleSystemSceneNode::setParticlesAreGlobal" ref="adc1c12bd7bf1a075f00c5dafa3aff266" args="(bool global=true)=0" --> | ||
1369 | <div class="memitem"> | ||
1370 | <div class="memproto"> | ||
1371 | <table class="memname"> | ||
1372 | <tr> | ||
1373 | <td class="memname">virtual void irr::scene::IParticleSystemSceneNode::setParticlesAreGlobal </td> | ||
1374 | <td>(</td> | ||
1375 | <td class="paramtype">bool </td> | ||
1376 | <td class="paramname"><em>global</em> = <code>true</code></td><td>)</td> | ||
1377 | <td><code> [pure virtual]</code></td> | ||
1378 | </tr> | ||
1379 | </table> | ||
1380 | </div> | ||
1381 | <div class="memdoc"> | ||
1382 | |||
1383 | <p>Sets if the particles should be global. </p> | ||
1384 | <p>If they are, the particles are affected by the movement of the particle system scene node too, otherwise they completely ignore it. Default is true. </p> | ||
1385 | |||
1386 | </div> | ||
1387 | </div> | ||
1388 | <a class="anchor" id="a17e1abe0feb0b57e96bf49d984bcbb86"></a><!-- doxytag: member="irr::scene::IParticleSystemSceneNode::setParticleSize" ref="a17e1abe0feb0b57e96bf49d984bcbb86" args="(const core::dimension2d< f32 > &size=core::dimension2d< f32 >(5.0f, 5.0f))=0" --> | ||
1389 | <div class="memitem"> | ||
1390 | <div class="memproto"> | ||
1391 | <table class="memname"> | ||
1392 | <tr> | ||
1393 | <td class="memname">virtual void irr::scene::IParticleSystemSceneNode::setParticleSize </td> | ||
1394 | <td>(</td> | ||
1395 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1dimension2d.html">core::dimension2d</a>< <a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> > & </td> | ||
1396 | <td class="paramname"><em>size</em> = <code><a class="el" href="classirr_1_1core_1_1dimension2d.html">core::dimension2d</a>< <a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> >(5.0f, 5.0f)</code></td><td>)</td> | ||
1397 | <td><code> [pure virtual]</code></td> | ||
1398 | </tr> | ||
1399 | </table> | ||
1400 | </div> | ||
1401 | <div class="memdoc"> | ||
1402 | |||
1403 | <p>Sets the size of all particles. </p> | ||
1404 | |||
1405 | </div> | ||
1406 | </div> | ||
1407 | <hr/>The documentation for this class was generated from the following file:<ul> | ||
1408 | <li><a class="el" href="_i_particle_system_scene_node_8h_source.html">IParticleSystemSceneNode.h</a></li> | ||
1409 | </ul> | ||
1410 | </div> | ||
1411 | </div> | ||
1412 | <div id="nav-path" class="navpath"> | ||
1413 | <ul> | ||
1414 | <li class="navelem"><a class="el" href="namespaceirr.html">irr</a> </li> | ||
1415 | <li class="navelem"><a class="el" href="namespaceirr_1_1scene.html">scene</a> </li> | ||
1416 | <li class="navelem"><a class="el" href="classirr_1_1scene_1_1_i_particle_system_scene_node.html">IParticleSystemSceneNode</a> </li> | ||
1417 | <!-- window showing the filter options --> | ||
1418 | <div id="MSearchSelectWindow" | ||
1419 | onmouseover="return searchBox.OnSearchSelectShow()" | ||
1420 | onmouseout="return searchBox.OnSearchSelectHide()" | ||
1421 | onkeydown="return searchBox.OnSearchSelectKey(event)"> | ||
1422 | <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Defines</a></div> | ||
1423 | |||
1424 | <!-- iframe showing the search results (closed by default) --> | ||
1425 | <div id="MSearchResultsWindow"> | ||
1426 | <iframe src="javascript:void(0)" frameborder="0" | ||
1427 | name="MSearchResults" id="MSearchResults"> | ||
1428 | </iframe> | ||
1429 | </div> | ||
1430 | |||
1431 | |||
1432 | <li class="footer"> | ||
1433 | <a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht | ||
1434 | Engine</a> Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on Tue Nov 6 2012 11:06:06 for Irrlicht 3D Engine by | ||
1435 | <a href="http://www.doxygen.org/index.html" target="_blank">Doxygen</a> 1.7.5.1 </li> | ||
1436 | </ul> | ||
1437 | </div> | ||
1438 | |||
1439 | |||
1440 | </body> | ||
1441 | </html> | ||