17 #ifndef AGXCOLLIDE_BOX_H
18 #define AGXCOLLIDE_BOX_H
#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
Axis aligned bounding box implementation.
A box shape for geometric intersection tests.
static BoundingAABB calculateBound(const agx::AffineMatrix4x4 &transform, const agx::Vec3 &halfExtents)
Method for calculating the bound of a transformed box.
Box(const agx::Vec3 halfExtents)
Construct given half extents.
virtual agx::Real getVolume() const override
Return the volume of the shape.
virtual Shape * clone() const override
Create a clone.
virtual bool hasSupportFunction() const override
virtual agx::Vec3 getSupportPoint(const agx::Vec3 &supportDirection) const override
Returns the support point on face of the shape.
void setHalfExtents(const agx::Vec3 &halfExtents)
Set the half size of the box.
virtual agx::SPDMatrix3x3 calculateInertia(agx::Real mass) const override
Calculate the inertia for the shape given a mass.
Box(agx::Real halfExtentX, agx::Real halfExtentY, agx::Real halfExtentZ)
Construct given half extents.
virtual const BoundingAABB & updateBoundingVolume() override
Calculate the bounding volume based on the current Shape parameters including transformation.
virtual BoundingAABB calculateLocalBound() const override
Calculate the bounding volume in the local coordinate system.
The geometry representation used by the collision detection engine.
agx::Physics::Geometry::ShapePtr getEntity() const
Pointer to a entity instance of type Physics.Geometry.Box.
Specialized type of matrices for holding symmetric positive definite matrices.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
This namespace consists of a set of classes for handling geometric intersection tests including boole...
AGX_DECLARE_POINTER_TYPES(SpaceListener)
AGXCORE_EXPORT EntityModel * getEntity(const agx::Path &path)
Get a entity with a specified path.
void AGXCORE_EXPORT transform(void *target, const Format *targetFormat, const void *source, const Format *sourceFormat, size_t numElements)
Transform data between two buffers.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Vec3T< Real > Vec3
The object holding 3 dimensional vectors and providing basic arithmetic.