#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXPHYSICS_EXPORT
Class for writing serialized data in binary format to a stream.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
A component is an object containing other objects, enabling hierarchical structuring.
The class GravityField is responsible for calculating and applying a gravity force on a set of bodies...
virtual void restore(agxStream::InputArchive &in) override
virtual Task * createParticleSystemTask()=0
Internal use.
virtual agx::Vec3 calculateGravity(const agx::Vec3 &position) const =0
Given position, a gravity acceleration will be calculated and returned.
virtual void store(agxStream::OutputArchive &out) const override
virtual Task * createRigidBodyTask()=0
Internal use.
AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(agx::GravityField)
virtual ~GravityField()
Destructor.
A representation of a generic task.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.