api/aspherix_particle.h

This is the header file used to properties of a single particle. The member functions are:


Particle

Constructor

getId

Get the id of the particle.

getType

Get the type (material index) of a particle.

getMass

Get the mass of a particle.

getRadius

Get the radius of a particle.

getDensity

Get the density of a particle.

getForce

Get the force acting on a particle.

getVelocity

Get the velocity of a particle.

getPosition

Get the position of a particle.

getAngularVelocity

Get the angular velocity of a particle.

getTorque

Get the torque acting on a particle.

getFixPropertyScalar

Get the value of a per-particle scalar property

getFixPropertyVector

Get the value of a per-particle vector property

setFixPropertyScalar

Set the value of a per-particle scalar property

setFixPropertyVector

Set the value of a per-particle vector property

getTypeProperty

Get the value of a material property of a particle according to its material.