15 INLINE
void BaseParticle::set_age(PN_stdfloat age) {
19 INLINE
void BaseParticle::set_lifespan(PN_stdfloat lifespan) {
23 INLINE
void BaseParticle::set_alive(
bool alive) {
27 INLINE
void BaseParticle::set_index(
int index) {
31 INLINE PN_stdfloat BaseParticle::get_age()
const {
35 INLINE PN_stdfloat BaseParticle::get_lifespan()
const {
39 INLINE
bool BaseParticle::get_alive()
const {
43 INLINE
int BaseParticle::get_index()
const {
47 INLINE PN_stdfloat BaseParticle::get_parameterized_age()
const {
48 if (_lifespan <= 0)
return 1.0;
49 return _age / _lifespan;
52 INLINE PN_stdfloat BaseParticle::get_parameterized_vel()
const {
LVector3 get_velocity() const
Velocity Query per second.
PN_stdfloat get_terminal_velocity() const
tv query