14INLINE
void BaseParticle::set_age(PN_stdfloat age) {
18INLINE
void BaseParticle::set_lifespan(PN_stdfloat lifespan) {
22INLINE
void BaseParticle::set_alive(
bool alive) {
26INLINE
void BaseParticle::set_index(
int index) {
30INLINE PN_stdfloat BaseParticle::get_age()
const {
34INLINE PN_stdfloat BaseParticle::get_lifespan()
const {
38INLINE
bool BaseParticle::get_alive()
const {
42INLINE
int BaseParticle::get_index()
const {
46INLINE PN_stdfloat BaseParticle::get_parameterized_age()
const {
47 if (_lifespan <= 0)
return 1.0;
48 return _age / _lifespan;
51INLINE PN_stdfloat BaseParticle::get_parameterized_vel()
const {
get_velocity
Velocity Query per second.
get_terminal_velocity
tv query