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;
74 return m_gravity->
get();
79 m_gravity->
set(gravity);
84 return m_gravity->
get();
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXPHYSICS_EXPORT
Only use as member allocated variable.
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.
const Real GRAVITY_ACCELERATION