wavelength 1.0.0
Loading...
Searching...
No Matches
particlearmsassembly.h
Go to the documentation of this file.
1#pragma once
2
3#include <memory>
4
5#include "gfx/tnlgeom.h"
6#include "math/interpolator.h"
8#include "rnd/rndtransanim.h"
9#include "script/dataarray.h"
10
18public:
27
35
43 void LoadConfig(DataArray *pData);
44
55 void Poll(TnlGeom *pGeom, float flTick);
56
66 void Move(float flFromTicks, float flToTicks, float flTicks);
67
74 void Report();
75
83 const char *Name() const;
84
85private:
86 std::unique_ptr<RndParticleSys> mSys;
87 RndTransAnim *mPath;
88 std::unique_ptr<Interpolator> mTicksAhead;
90 int mNumArms;
91 float mRotationSpeed;
92 float mArmLength;
93 float mTick;
94 float mAngle;
95};
Reference-counted array of script data nodes.
Definition dataarray.h:20
void Poll(TnlGeom *pGeom, float flTick)
Turn the arms and emit their particles up to a tick.
const char * Name() const
Report the name of the particle system.
void Move(float flFromTicks, float flToTicks, float flTicks)
Move the point the arms turn about over a span of ticks.
void Report()
Report the use of the particles through the debug output.
ParticleArmsAssembly(DataArray *pData)
Create the particle system and load the arms.
~ParticleArmsAssembly()
Delete the particle system and the curve.
void LoadConfig(DataArray *pData)
Load the arms and the particle settings, and stop the emission.
Animation of a transformable's local transform by rotation, translation, and scale keys.
Definition rndtransanim.h:20
The geometry of the tracks of the tunnel, which places a cell of a track in the world.
Definition tnlgeom.h:32