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.
virtual Task * createParticleSystemTask() override
Internal use.
CustomGravityField()
Constructor.
virtual Task * createRigidBodyTask() override
Internal use.
AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(agx::CustomGravityField)
virtual void store(agxStream::OutputArchive &out) const override
The class GravityField is responsible for calculating and applying a gravity force on a set of bodies...
A representation of a generic task.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.