 |
AGX Dynamics
2.38.0.2
|
Go to the documentation of this file.
17 #ifndef AGXCOLLIDE_CAPSULE_H
18 #define AGXCOLLIDE_CAPSULE_H
70 virtual Shape *clone()
const override;
72 virtual agx::Real getVolume()
const override;
73 virtual bool hasSupportFunction()
const override;
80 virtual const BoundingAABB& updateBoundingVolume()
override;
81 virtual BoundingAABB calculateLocalBound()
const override;
Implements a Capsule shape for geometric intersection tests.
void AGXCORE_EXPORT transform(void *target, const Format *targetFormat, const void *source, const Format *sourceFormat, size_t numElements)
Transform data between two buffers.
agx::Real getHeight() const
#define DOXYGEN_END_INTERNAL_BLOCK()
agx::Real getRadius() const
#define DOXYGEN_START_INTERNAL_BLOCK()
static BoundingAABB calculateBound(const agx::AffineMatrix4x4 &transform, const agx::Real radius, const agx::Real height)
Axis aligned bounding box implementation.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
agx::Physics::Geometry::ShapeRef m_entity
agx::Physics::Geometry::ShapePtr getEntity() const
#define AGXPHYSICS_EXPORT
static Vec3T componentMin(const Vec3T &v1, const Vec3T &v2)
Creates a new vector where each component is the minimum of this and the other vector.
Pointer to a entity instance of type Physics.Geometry.Capsule.
Vec3T< Real > Vec3
The object holding 3 dimensional vectors and providing basic arithmetic.
Type
Define the type of a Shape.
static Vec3T componentMax(const Vec3T &v1, const Vec3T &v2)
Creates a new vector where each component is the maximum of this and the other vector.
Specialized type of matrices for holding symmetric positive definite matrices.
Pointer to a entity instance of type Physics.Geometry.Shape.
This namespace consists of a set of classes for handling geometric intersection tests including boole...
AGX_DECLARE_POINTER_TYPES(SpaceListener)
virtual bool hasSupportFunction() const override
AGXCORE_EXPORT EntityModel * getEntity(const agx::Path &path)
Get a entity with a specified path.