Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
IParticleGravityAffector.hpp
1// Copyright (C) 2002-2012 Nikolaus Gebhardt
2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in nirtcpp/nirtcpp.hpp
4
5#ifndef NIRT_I_PARTICLE_GRAVITY_AFFECTOR_HPP_INCLUDED
6#define NIRT_I_PARTICLE_GRAVITY_AFFECTOR_HPP_INCLUDED
7
8#include <nirtcpp/core/engine/IParticleAffector.hpp>
9
10namespace nirt
11{
12namespace scene
13{
14
17{
18public:
19
21
22 virtual void setTimeForceLost( f32 timeForceLost ) = 0;
23
25 virtual void setGravity( const core::vector3df& gravity ) = 0;
26
28 virtual f32 getTimeForceLost() const = 0;
29
31 virtual const core::vector3df& getGravity() const = 0;
32
34 virtual E_PARTICLE_AFFECTOR_TYPE getType() const override { return EPAT_GRAVITY; }
35};
36
37} // end namespace scene
38} // end namespace nirt
39
40#endif // NIRT_I_PARTICLE_GRAVITY_AFFECTOR_HPP_INCLUDED
A particle affector modifies particles.
Definition IParticleAffector.hpp:42
A particle affector which applies gravity to particles.
Definition IParticleGravityAffector.hpp:17
virtual const core::vector3df & getGravity() const =0
Get the direction and force of gravity.
virtual E_PARTICLE_AFFECTOR_TYPE getType() const override
Get emitter type.
Definition IParticleGravityAffector.hpp:34
virtual void setGravity(const core::vector3df &gravity)=0
Set the direction and force of gravity in all 3 dimensions.
virtual void setTimeForceLost(f32 timeForceLost)=0
Set the time in milliseconds when the gravity force is totally lost.
virtual f32 getTimeForceLost() const =0
Get the time in milliseconds when the gravity force is totally lost.
E_PARTICLE_AFFECTOR_TYPE
Types of built in particle affectors.
Definition IParticleAffector.hpp:18
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
float f32
32 bit floating point variable.
Definition irrTypes.hpp:110

Nirtcpp    @cppfx.xyz

Esvcpp    esv::print