[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.10.20 Explosion Mesh Object

Written by Jorrit Tyberghein, jorrit.tyberghein@gmail.com.

Explosion is a particle system that emulates an explosion. Also see the general particle system documentation which is valid for all particle systems. See section Particle Systems in General.

Basic Structure

The following SCF class names are used (for CS_LOAD_PLUGIN()):

Objects in this plugin implement the following SCF interfaces (get with SCF_QUERY_INTERFACE()):

Factory State Interface

This plugin has no factory state interface.

Factory Loader

The fountain mesh factory loader has no parameters.

Object State Interface

`iExplosionState' is the SCF interface that you can use to set/get settings for an explosion object. The definition of this interface can be found in `CS/include/imesh/explode.h' and that's also the include file you need to include in your applications to use this plugin. Using this interface you can access the number of particles, the size of the particles, and various other explosion parameters.

In addition you can use `iParticleState'.

Object Loader

Also see the general documentation for particle systems for other recognized keywords. See section Particle Systems in General.

<dropsize w="" h="" />

Size of the droplets for the snow (width and height).

<center x="" y="" z="" />

Center of the explosion. In most cases you should use the origin here (0,0,0) and let the engine control the position of the explosion.

<push x="" y="" z="" />

Initial push.

<fade>number</fade>

Fade.

<partradius>radius</partradius>

Radius of every part.

<nrsides>nrSides</nrsides>

Number of sides to use for the explosion particles.

<spreadpos>spreadPos</spreadpos>

SpreadPos.

<spreadspeed>spreadSpeed</spreadspeed>

SpreadSpeed.

<spreadaccel>spreadAccelaration</spreadaccel>

SpreadAccel.

<lighting>yes/no</lighting>

Disable or enable lighting for the explosion particles.

<number>numberparticles</number>

Number of particles to use.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated using texi2html 1.76.