Expose getSpeed and setSpeed of particle attraction affector
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4541 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
f220d10900
commit
00f8f8a8ac
|
@ -20,6 +20,9 @@ public:
|
||||||
//! Set the point that particles will attract to
|
//! Set the point that particles will attract to
|
||||||
virtual void setPoint( const core::vector3df& point ) = 0;
|
virtual void setPoint( const core::vector3df& point ) = 0;
|
||||||
|
|
||||||
|
//! Set the speed, in game units per second that the particles will attract to the specified point
|
||||||
|
virtual void setSpeed( f32 speed ) { Speed = speed; }
|
||||||
|
|
||||||
//! Set whether or not the particles are attracting or detracting
|
//! Set whether or not the particles are attracting or detracting
|
||||||
virtual void setAttract( bool attract ) = 0;
|
virtual void setAttract( bool attract ) = 0;
|
||||||
|
|
||||||
|
@ -35,6 +38,9 @@ public:
|
||||||
//! Get the point that particles are attracted to
|
//! Get the point that particles are attracted to
|
||||||
virtual const core::vector3df& getPoint() const = 0;
|
virtual const core::vector3df& getPoint() const = 0;
|
||||||
|
|
||||||
|
//! Get the speed that points attract to the specified point
|
||||||
|
virtual f32 getSpeed() const { return Speed; }
|
||||||
|
|
||||||
//! Get whether or not the particles are attracting or detracting
|
//! Get whether or not the particles are attracting or detracting
|
||||||
virtual bool getAttract() const = 0;
|
virtual bool getAttract() const = 0;
|
||||||
|
|
||||||
|
|
|
@ -28,8 +28,7 @@ public:
|
||||||
//! Set the point that particles will attract to
|
//! Set the point that particles will attract to
|
||||||
virtual void setPoint( const core::vector3df& point ) { Point = point; }
|
virtual void setPoint( const core::vector3df& point ) { Point = point; }
|
||||||
|
|
||||||
//! Set the speed, in game units per second that the particles will attract to
|
//! Set the speed, in game units per second that the particles will attract to the specified point
|
||||||
//! the specified point
|
|
||||||
virtual void setSpeed( f32 speed ) { Speed = speed; }
|
virtual void setSpeed( f32 speed ) { Speed = speed; }
|
||||||
|
|
||||||
//! Set whether or not the particles are attracting or detracting
|
//! Set whether or not the particles are attracting or detracting
|
||||||
|
|
Loading…
Reference in New Issue