Loading...
Searching...
No Matches
IParticleGravityAffector.h
Go to the documentation of this file.
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_PARTICLE_GRAVITY_AFFECTOR_H_INCLUDED__
#define __I_PARTICLE_GRAVITY_AFFECTOR_H_INCLUDED__
#include "IParticleAffector.h"
namespace irr
{
namespace scene
{
class IParticleGravityAffector : public IParticleAffector
{
public:
virtual void setTimeForceLost( f32 timeForceLost ) = 0;
virtual void setGravity( const core::vector3df& gravity ) = 0;
virtual f32 getTimeForceLost() const = 0;
virtual const core::vector3df& getGravity() const = 0;
virtual E_PARTICLE_AFFECTOR_TYPE getType() const { return EPAT_GRAVITY; }
};
} // end namespace scene
} // end namespace irr
#endif // __I_PARTICLE_GRAVITY_AFFECTOR_H_INCLUDED__
IParticleAffector.h
irr::scene::IParticleAffector::IParticleAffector
IParticleAffector()
constructor
Definition IParticleAffector.h:46
irr::scene::IParticleGravityAffector
A particle affector which applies gravity to particles.
Definition IParticleGravityAffector.h:17
irr::scene::IParticleGravityAffector::setTimeForceLost
virtual void setTimeForceLost(f32 timeForceLost)=0
Set the time in milliseconds when the gravity force is totally lost.
irr::scene::IParticleGravityAffector::getType
virtual E_PARTICLE_AFFECTOR_TYPE getType() const
Get emitter type.
Definition IParticleGravityAffector.h:34
irr::scene::IParticleGravityAffector::getGravity
virtual const core::vector3df & getGravity() const =0
Get the direction and force of gravity.
irr::scene::IParticleGravityAffector::getTimeForceLost
virtual f32 getTimeForceLost() const =0
Get the time in milliseconds when the gravity force is totally lost.
irr::scene::IParticleGravityAffector::setGravity
virtual void setGravity(const core::vector3df &gravity)=0
Set the direction and force of gravity in all 3 dimensions.
irr::core::vector3df
vector3d< f32 > vector3df
Typedef for a f32 3d vector.
Definition vector3d.h:445
irr::scene
All scene management can be found in this namespace: Mesh loading, special scene nodes like octrees a...
Definition CDynamicMeshBuffer.h:16
irr::scene::E_PARTICLE_AFFECTOR_TYPE
E_PARTICLE_AFFECTOR_TYPE
Types of built in particle affectors.
Definition IParticleAffector.h:18
irr::scene::EPAT_GRAVITY
@ EPAT_GRAVITY
Definition IParticleAffector.h:22
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
irr::f32
float f32
32 bit floating point variable.
Definition irrTypes.h:104
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0