Commit 00f8f8a8 authored by hybrid's avatar hybrid

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-e03cc46cb475
parent f220d109
...@@ -20,6 +20,9 @@ public: ...@@ -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: ...@@ -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: ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment