#include <TerrainParticles.h>
- Deprecated:
- This class is deprecated and will be removed in a future version of AGX.
- See Also
- agxTerrain::Terrain Class to handle terrain digged up particles.
Definition at line 53 of file TerrainParticles.h.
Enum for type of soil.
| Enumerator |
|---|
| PARTICLE |
|
| PARTICLE_SYSTEM_PARTICLE |
|
| CONVEX_BODY |
|
Definition at line 61 of file TerrainParticles.h.
| agxModel::ParticleAttributes::ParticleAttributes |
( |
| ) |
|
| void agxStream::Serializable::generateUuid |
( |
| ) |
|
|
protectedinherited |
| agx::Real agxModel::ParticleAttributes::getAdhesiveOverlap |
( |
| ) |
const |
- Returns
- the adhesive overlap used for the material of the soil particles.
| const char* agxModel::ParticleAttributes::getClassName |
( |
| ) |
const |
|
inlineoverridevirtual |
| static const char* agxModel::ParticleAttributes::getConstructClassId |
( |
| ) |
|
|
inlinestatic |
| agx::Real agxModel::ParticleAttributes::getCoreRadius |
( |
| ) |
const |
- Returns
- the core radius of soil particles (outer radius minus the adhesion).
| bool agxStream::Serializable::getEnableSerialization |
( |
| ) |
const |
|
inherited |
- Returns
- true if serialization is enabled for this object
Definition at line 273 of file Serializable.h.
| bool agxStream::Serializable::getEnableUuidGeneration |
( |
| ) |
|
|
inherited |
- Returns
- true if Uuid:s should be generated for each new Serializable object
| agx::UInt32 agxStream::Serializable::getIndex |
( |
| ) |
const |
|
inherited |
This index is given at creation of this object.
It is guaranteed to be unique for the lifetime of this library instance. As long as the application is running. This value is not serialized or restored. A new object will always get a new index no matter how it is created.
- Returns
- an instance index of this object. This is unique for the lifetime of this library instance.
Definition at line 247 of file Serializable.h.
| agx::Real agxModel::ParticleAttributes::getMergeVelocity2 |
( |
| ) |
const |
- Returns
- the square of the merge velocity..
| agx::UInt32 agxModel::ParticleAttributes::getParticleUniqueId |
( |
| ) |
const |
- Returns
- unique particle id for disabling collisions against them (for example).
| agx::Real agxModel::ParticleAttributes::getParticleYoungsModulusMultiplier |
( |
| ) |
const |
- Returns
- how many times stiffer the particles should be than the actual Young's modulus for a material.
| agx::Real agxModel::ParticleAttributes::getRadius |
( |
| ) |
const |
- Returns
- the outer radius for the soil particles.
| bool agxModel::ParticleAttributes::getRadiusIsDirty |
( |
| ) |
const |
- Returns
- true if the radius has been changed.
| agxStream::StorageAgent* agxModel::ParticleAttributes::getStorageAgent |
( |
| ) |
const |
|
inlineoverridevirtual |
| SoilType agxModel::ParticleAttributes::getType |
( |
| ) |
|
| agx::Uuid agxStream::Serializable::getUuid |
( |
| ) |
const |
|
inherited |
| agx::Real agxModel::ParticleAttributes::getVolume |
( |
| ) |
const |
- Returns
- the volume a soil particle will represent.
| bool agxStream::Serializable::isFinished |
( |
| ) |
const |
|
inherited |
- Returns
- true if this class is restored correctly and should not be deleted during destruction of an Archive.
Definition at line 252 of file Serializable.h.
| void agxModel::ParticleAttributes::setCoreRadius |
( |
agx::Real |
coreRadius | ) |
|
Set the particle core radius.
Changing the core radius will effect the dynamics of the SoilParticles. User could set core radius explicitly for wanted particle behavior. The possible adhesion overlap distance will change.
| void agxStream::Serializable::setEnableSerialization |
( |
bool |
flag | ) |
|
|
inherited |
Set to false to disable serialization of this object.
It will just be ignored during serialization (writing). It is still possible to restore TO this object.
| static void agxStream::Serializable::setEnableUuidGeneration |
( |
bool |
flag | ) |
|
|
staticinherited |
Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.
| void agxStream::Serializable::setFinished |
( |
| ) |
|
|
inherited |
Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.
| void agxModel::ParticleAttributes::setMergeVelocity |
( |
agx::Real |
velocity | ) |
|
Set the merge velocity for soil particles.
I.e the minimum speed of particles before they can be merged with the terrain.
| void agxModel::ParticleAttributes::setParticleUniqueId |
( |
agx::UInt32 |
uniqueParticleId | ) |
|
Set unique Id for soil particles.
To make it possible to disable against other groups.
| void agxModel::ParticleAttributes::setParticleYoungsModulusMultiplier |
( |
agx::Real |
multiplier | ) |
|
Set how much stiffer the particle Young's modulus to be than the terrain material.
The terrain material is usually very soft, and if the particle contacts are solved iteratively that will make them behave even softer.
Set the soil particle radius.
The radius is controlled by agxModel::Terrain through agxModel::TerrainDataInterface. The spheres are conformed in an FCC lattice (terrain fixes this). The core radius should be set so that when introduced particles are mathematically just touching. The radius can be set to a value leq to the height field vertex distance.
| void agxModel::ParticleAttributes::setType |
( |
SoilType |
soilType | ) |
|
Set the type of soil to be created when it's time to create particles.
Explicitly set a Uuid on a serializable object.
Use this method with great care, as it can result in non-unique identifiers in the system!
The documentation for this class was generated from the following file: