 |
AGXDynamics
2.35.0.3
|
Go to the documentation of this file.
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();
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
#define AGXPHYSICS_EXPORT
A representation of a generic task.
Vec3T< Real > Vec3
The object holding 3 dimensional vectors and providing basic arithmetic.
const Real GRAVITY_ACCELERATION
#define AGX_DECLARE_POINTER_TYPES(type)
Templated value-reference.
A class holding 3 dimensional vectors and providing basic arithmetic.
The class GravityField is responsible for calculating and applying a gravity force on a set of bodies...