17 #ifndef AGXSDK_SIMULATIONOBJECT_H
18 #define AGXSDK_SIMULATIONOBJECT_H
120 bool createGeometry=
true,
121 bool createBody =
true
151 bool createGeometry=
true,
180 bool createGeometry=
true,
210 bool createGeometry=
true,
211 bool createBody=
false
244 bool createGeometry=
true,
245 bool createBody=
false
285 bool createGeometry=
true,
286 bool createBody=
false
315 bool createGeometry=
true,
344 bool createGeometry=
true,
374 bool createGeometry=
true,
405 bool createGeometry=
true,
#define AGXPHYSICS_EXPORT
The geometry representation used by the collision detection engine.
Deprecated, used only for internal examples*.
static SimulationObject createHeightField(const agx::String &name, const agx::AffineMatrix4x4 &transform, const agx::RealVector &heights, size_t resolutionX, size_t resolutionY, agx::Real sizeX, agx::Real sizeY, agx::Real bottomMargin, agxSDK::Simulation *simulation, agx::RigidBody::MotionControl motionControl=agx::RigidBody::STATIC, bool createGeometry=true, bool createBody=false)
Deprecated, used only for internal examples*.
agxCollide::Geometry * getGeometry()
void setRigidBody(agx::RigidBody *body)
SimulationObject()
Constructor for a SimulationObject that will store a reference to a Geometry and a RigidBody.
static SimulationObject createTrimesh(const agx::String &name, const agx::AffineMatrix4x4 &transform, const agx::String &filename, agx::Real bottomMargin, agxSDK::Simulation *simulation, agx::RigidBody::MotionControl motionControl=agx::RigidBody::DYNAMICS, bool createGeometry=true, bool createBody=true)
Deprecated, used only for internal examples*.
SimulationObject(const SimulationObject ©)
Copy constructor.
static SimulationObject createBox(const agx::String &name, const agx::AffineMatrix4x4 &transform, const agx::Vec3 &halfExtent, agxSDK::Simulation *simulation, agx::RigidBody::MotionControl motionControl=agx::RigidBody::DYNAMICS, bool createGeometry=true, bool createBody=true)
Deprecated, used only for internal examples*.
static SimulationObject createPlane(const agx::String &name, const agx::AffineMatrix4x4 &transform, agxSDK::Simulation *simulation, agx::RigidBody::MotionControl motionControl=agx::RigidBody::STATIC, bool createGeometry=true, bool createBody=false)
Deprecated, used only for internal examples*.
agxCollide::GeometryRef m_geometry
void setGeometry(agxCollide::Geometry *geom)
static SimulationObject createCapsule(const agx::String &name, const agx::AffineMatrix4x4 &transform, agx::Real radius, agx::Real height, agxSDK::Simulation *simulation, agx::RigidBody::MotionControl motionControl=agx::RigidBody::DYNAMICS, bool createGeometry=true, bool createBody=true)
Deprecated, used only for internal examples*.
static SimulationObject createSphere(const agx::String &name, const agx::AffineMatrix4x4 &transform, agx::Real radius, agxSDK::Simulation *simulation, agx::RigidBody::MotionControl motionControl=agx::RigidBody::DYNAMICS, bool createGeometry=true, bool createBody=true)
Deprecated, used only for internal examples*.
static SimulationObject createHeightField(const agx::String &name, const agx::AffineMatrix4x4 &transform, const agx::String &filename, const agx::Real &sizeX, const agx::Real &sizeY, const agx::Real &low, const agx::Real &high, agxSDK::Simulation *simulation, agx::RigidBody::MotionControl motionControl=agx::RigidBody::STATIC, bool createGeometry=true, bool createBody=false)
Deprecated, used only for internal examples*.
agx::RigidBody * getRigidBody()
SimulationObject(agxCollide::Geometry *geom, agx::RigidBody *body)
Constructor for a SimulationObject that will store a reference to a Geometry and a RigidBody.
static SimulationObject createTrimesh(const agx::String &name, const agx::AffineMatrix4x4 &transform, agxCollide::Shape *cloneTrimesh, agxSDK::Simulation *simulation, agx::RigidBody::MotionControl motionControl=agx::RigidBody::DYNAMICS, bool createGeometry=true, bool createBody=true)
Deprecated, used only for internal examples*.
static SimulationObject createTrimesh(const agx::String &name, const agx::AffineMatrix4x4 &transform, const agx::String &filename, agxSDK::Simulation *simulation, agx::RigidBody::MotionControl motionControl=agx::RigidBody::DYNAMICS, bool createGeometry=true, bool createBody=true)
Deprecated, used only for internal examples*.
static SimulationObject createCylinder(const agx::String &name, const agx::AffineMatrix4x4 &transform, agx::Real radius, agx::Real height, agxSDK::Simulation *simulation, agx::RigidBody::MotionControl motionControl=agx::RigidBody::DYNAMICS, bool createGeometry=true, bool createBody=true)
Deprecated, used only for internal examples*.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
The rigid body class, combining a geometric model and a frame of reference.
MotionControl
The MotionControl enumeration indicates what makes a RigidBody move.
@ STATIC
This body will never move.
@ DYNAMICS
This body moves from the influence of forces.
void AGXCORE_EXPORT transform(void *target, const Format *targetFormat, const void *source, const Format *sourceFormat, size_t numElements)
Transform data between two buffers.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...