Support Forum       G3D Web Page     
Static Public Member Functions | Public Attributes | Static Protected Member Functions | List of all members
G3D::ParticleSystem::PhysicsEnvironment Class Reference

Particle-specific forces that can be shared between ParticleSystem instances. More...

Inherits G3D::ReferenceCountedObject.

Static Public Member Functions

static shared_ptr< PhysicsEnvironmentcreate ()
 

Public Attributes

Vector3 gravitationalAcceleration
 m/s^2 More...
 
float maxBrownianVelocity
 Magnitude of small random disturbances of particles. More...
 
Vector3 windVelocity
 m/s More...
 

Static Protected Member Functions

template<class T , class ... ArgTypes>
static shared_ptr< T > createShared (ArgTypes &&... args)
 Like std::make_shared, but works for protected constructors. More...
 

Detailed Description

Particle-specific forces that can be shared between ParticleSystem instances.

Member Function Documentation

◆ create()

static shared_ptr<PhysicsEnvironment> G3D::ParticleSystem::PhysicsEnvironment::create ( )
inlinestatic

◆ createShared()

template<class T , class ... ArgTypes>
static shared_ptr<T> G3D::ReferenceCountedObject::createShared ( ArgTypes &&...  args)
inlinestaticprotectedinherited

Like std::make_shared, but works for protected constructors.

Call as createShared<myclass>.

Member Data Documentation

◆ gravitationalAcceleration

Vector3 G3D::ParticleSystem::PhysicsEnvironment::gravitationalAcceleration

m/s^2

◆ maxBrownianVelocity

float G3D::ParticleSystem::PhysicsEnvironment::maxBrownianVelocity

Magnitude of small random disturbances of particles.

This is currently applied in the local reference frame of the particles, for performance.

◆ windVelocity

Vector3 G3D::ParticleSystem::PhysicsEnvironment::windVelocity

m/s


documentation generated on Wed Nov 24 2021 08:01:58 using doxygen 1.8.15