Support Forum G3D Web Page |
Public Member Functions | |
Particle () | |
float | density () const |
Useful for computing buoyancy. More... | |
Public Attributes | |
float | angle |
Rotation about the view's z-axis. More... | |
float | angularVelocity |
Used for simulation in some animation modes. More... | |
float | coverage |
Scales the material's own coverage. More... | |
float | dragCoefficient |
Zero means no friction/air resistance, higher values represent increased drag. More... | |
uint16 | emitterIndex |
Not mapped to the GPU. More... | |
SimTime | expireTime |
Relative to Scene::time() baseline. More... | |
float | mass |
Used for simulation in some animation modes. More... | |
shared_ptr< ParticleMaterial > | material |
Mapped to the GPU as a texture layer index. More... | |
NormalDataType | normal |
Scaled and biased normal, where the 4th element is the signficiance: 0 = ignore. More... | |
Point3 | position |
Relative to the ParticleSystem's frame. More... | |
float | radius |
In world-space units. More... | |
SimTime | spawnTime |
Relative to Scene::time() baseline. More... | |
float | userdataFloat |
Arbitrary data visible in the shader as an additional attribute. More... | |
uint16 | userdataInt |
Arbitrary data visible in the shader as additional attributes. More... | |
Vector3 | velocity |
Used for simulation in some animation modes. More... | |
|
inline |
|
inline |
Useful for computing buoyancy.
float G3D::ParticleSystem::Particle::angle |
float G3D::ParticleSystem::Particle::angularVelocity |
Used for simulation in some animation modes.
Not mapped to the GPU.
float G3D::ParticleSystem::Particle::coverage |
Scales the material's own coverage.
Useful for fading out particles.
float G3D::ParticleSystem::Particle::dragCoefficient |
Zero means no friction/air resistance, higher values represent increased drag.
Used for simulation in some animation modes. Not mapped to the GPU.
uint16 G3D::ParticleSystem::Particle::emitterIndex |
Not mapped to the GPU.
SimTime G3D::ParticleSystem::Particle::expireTime |
Relative to Scene::time() baseline.
float G3D::ParticleSystem::Particle::mass |
shared_ptr<ParticleMaterial> G3D::ParticleSystem::Particle::material |
Mapped to the GPU as a texture layer index.
NormalDataType G3D::ParticleSystem::Particle::normal |
Scaled and biased normal, where the 4th element is the signficiance: 0 = ignore.
Point3 G3D::ParticleSystem::Particle::position |
Relative to the ParticleSystem's frame.
This is either in object or world space depending on the value of the ParticleSystem::particlesAreInWorldSpace flag.
May not be NaN or inf.
float G3D::ParticleSystem::Particle::radius |
In world-space units.
Referenced by density().
SimTime G3D::ParticleSystem::Particle::spawnTime |
Relative to Scene::time() baseline.
float G3D::ParticleSystem::Particle::userdataFloat |
Arbitrary data visible in the shader as an additional attribute.
uint16 G3D::ParticleSystem::Particle::userdataInt |
Arbitrary data visible in the shader as additional attributes.
Vector3 G3D::ParticleSystem::Particle::velocity |
Used for simulation in some animation modes.
Not mapped to the GPU.
This is either in object or world space depending on the value of the ParticleSystem::particlesAreInWorldSpace flag.