Back to index

supertuxkart  0.5+dfsg1
Public Member Functions | Public Attributes
Particle Class Reference

#include <particle_system.hpp>

List of all members.

Public Member Functions

void update (float dt)
 Particle ()

Public Attributes

sgVec4 m_col
sgVec3 m_pos
sgVec3 m_vel
sgVec3 m_acc
float m_size
float m_time_to_live
void * m_user_data

Detailed Description

Definition at line 24 of file particle_system.hpp.


Constructor & Destructor Documentation

Particle::Particle ( ) [inline]

Definition at line 45 of file particle_system.hpp.

    {
        sgSetVec4 ( m_col, 1, 1, 1, 1 ) ;
        sgZeroVec3 ( m_pos ) ;
        sgZeroVec3 ( m_vel ) ;
        sgZeroVec3 ( m_acc ) ;
        m_time_to_live = 0 ;
        m_user_data = 0 ;
        m_size = 1.0f ;
    }

Member Function Documentation

void Particle::update ( float  dt) [inline]

Definition at line 38 of file particle_system.hpp.

    {
        sgAddScaledVec3 ( m_vel, m_acc, dt ) ;
        sgAddScaledVec3 ( m_pos, m_vel, dt ) ;
        m_time_to_live -= dt ;
    }

Member Data Documentation

Definition at line 31 of file particle_system.hpp.

Definition at line 28 of file particle_system.hpp.

Definition at line 29 of file particle_system.hpp.

Definition at line 33 of file particle_system.hpp.

Definition at line 35 of file particle_system.hpp.

Definition at line 36 of file particle_system.hpp.

Definition at line 30 of file particle_system.hpp.


The documentation for this class was generated from the following file: