17 #ifndef AGX_UNIFORMGRAVITYFIELD_H 18 #define AGX_UNIFORMGRAVITYFIELD_H 42 void setGravity(
const Vec3& gravity );
45 Vec3 getGravity( )
const;
51 virtual Vec3 calculateGravity(
const Vec3& position )
const override;
54 virtual Task* createRigidBodyTask()
override;
57 virtual Task* createParticleSystemTask()
override;
74 return m_gravity->get();
79 m_gravity->set(gravity);
84 return m_gravity->get();
Vec3T< Real > Vec3
The object holding 3 dimensional vectors and providing basic arithmetic.
#define AGXPHYSICS_EXPORT
const Real GRAVITY_ACCELERATION
#define AGX_DECLARE_POINTER_TYPES(type)
A representation of a generic task.
Templated value-reference.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
The class GravityField is responsible for calculating and applying a gravity force on a set of bodies...