17 #ifndef AGX_CUSTOMGRAVITYFIELD_H
18 #define AGX_CUSTOMGRAVITYFIELD_H
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXPHYSICS_EXPORT
Class for writing serialized data in binary format to a stream.
The custom gravity field allow a user to derive from this class and implement their own gravity funct...
virtual void restore(agxStream::InputArchive &in) override
virtual ~CustomGravityField()
Destructor.
virtual agx::Vec3 calculateGravity(const agx::Vec3 &position) const override
Given position, a gravity acceleration will be calculated and returned.
CustomGravityField()
Constructor.
AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(agx::CustomGravityField)
virtual void store(agxStream::OutputArchive &out) const override
virtual Task * createRigidBodyTask() override
Internal use.
virtual Task * createParticleSystemTask() override
Internal use.
The class GravityField is responsible for calculating and applying a gravity force on a set of bodies...
A representation of a generic task.
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.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.