geParticle

From GriffinEngine
Jump to: navigation, search

Usage

A simple particle system which includes A emitter class , particle class and particle descriptor class. Emitter inherits from GeObject3D and the others inherit from GeObject Each particle is intrinsically connected to its emitter; destruction of the emitter will remove all of the particles it emitted. In the interest of keeping the system fast, geParticle does not inherit from geObject3D, and can therefore not be included by itself in the scene graph.


Reference

Fields

  •  float3 position;
  •  float3 velocity;
  •  int life;

Constructors

  •  geParticle(float3 _position, float3 _velocity, int _life);

Accessors

  •  bool isDead();
  •  int getID() { return 0x0AE00; }

Methods

  •  void Update();