17#ifndef AGXCOLLIDE_SPHERE_H
18#define AGXCOLLIDE_SPHERE_H
74 agx::Physics::
Geometry::SpherePtr getEntity() const;
87 return getEntity().radius();
95 const agx::Vec3 pos = transform.getTranslate();
#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
Axis aligned bounding box implementation.
The geometry representation used by the collision detection engine.
A sphere class for geometric intersection tests.
virtual Shape * clone() const override
Create a clone.
virtual agx::Vec3 getSupportPoint(const agx::Vec3 &supportDirection) const override
Returns the support point on face of the shape.
virtual agx::Real getVolume() const override
Return the volume of the shape.
virtual BoundingAABB calculateLocalBound() const override
Calculate the bounding volume in the local coordinate system.
virtual const BoundingAABB & updateBoundingVolume() override
Calculate the bounding volume based on the current Shape parameters including transformation.
virtual agx::SPDMatrix3x3 calculateInertia(agx::Real mass) const override
Calculate the inertia for the shape given a mass.
Sphere(agx::Real radius=agx::Real(0.5))
Constructor.
virtual bool hasSupportFunction() const override
void setRadius(agx::Real radius)
Set the sphere radius.
virtual agx::Real calculateBoundingRadius(BoundingAABB &localAABB) const override
Calculate the bounding volume (AABB) into localAABB and calculate the bounding radius based on the ne...
Pointer to a entity instance of type Physics.Geometry.Sphere.
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...
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.