17 #ifndef AGX_CUSTOMGRAVITYFIELD_H 18 #define AGX_CUSTOMGRAVITYFIELD_H 51 virtual Task* createRigidBodyTask()
override;
54 virtual Task* createParticleSystemTask()
override;
InputRef< T > in(const char *name, T &obj)
Create an object with a name and a reference to the object that should be restored (usually a pointer...
OutputRef< Serializable > out(const char *name, const Serializable *obj)
Return an object that contain the name and the object that should be serialized to an archive...
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_POINTER_TYPES(type)
A representation of a generic task.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
The custom gravity field allow a user to derive from this class and implement their own gravity funct...
Class for writing serialized data in binary format to a stream.
The class GravityField is responsible for calculating and applying a gravity force on a set of bodies...
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...