17 #ifndef AGX_PHYSICS_GRANULARBODYSYSTEM_H 18 #define AGX_PHYSICS_GRANULARBODYSYSTEM_H 59 virtual bool setUpdateTask(
Task* updateTask)
override;
61 #if (!defined SWIG ) || ( defined SWIGCSHARP || defined SWIGJAVA) 85 void setSingleParticleAngularVelocity(
agx::Index particleId,
const agx::Vec3& angularVelocity );
107 virtual void setParticleMass(
Real mass,
bool updateExistingParticles =
false )
override;
115 void setContactMode(
agx::UInt contactMode);
122 void preAllocateParticlePairContactStorage(
size_t numElements );
129 void preAllocateParticleGeometryContactStorage(
size_t numElements );
136 void preAllocateParticleStorage(
size_t numElements );
141 void invalidLicenseCallback();
void AGXPHYSICS_EXPORT init()
Initialize AGX Dynamics API including thread resources and must be executed before using the AGX API...
Pointer to a entity instance of type Physics.GranularBody.
const agx::Physics::GranularBodyPtrArray getParticles() const
void AGXCORE_EXPORT transform(void *target, const Format *targetFormat, const void *source, const Format *sourceFormat, size_t numElements)
Transform data between two buffers.
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_POINTER_TYPES(type)
A representation of a generic task.
Type-specific Array used for fast access into the data held by a Buffer.
static CpuDevice * instance()
A basic particle system that contains all the storages and buffers required for basic operation and a...
Vector containing 'raw' data.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Physics::GranularBodyPtr createParticle()
Create a new particle in the particle system.
The rigid body class, combining a geometric model and a frame of reference.
AGXPHYSICS_EXPORT void setMotionControl(agx::RigidBodyPtrVector &bodies, agx::RigidBody::MotionControl motionControl)
Utility function to set motion control for a vector of rigid bodies.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
An agx::Device is an abstract representation of a device on which data can be stored and processed...
Physics::ParticlePtr createParticle()
Create a new particle in the particle system.
MotionControl
The MotionControl enumeration indicates what makes a GranularBody in the GranularBodySystem move...