|
| | Capsule (const agx::Real radius=agx::Real(1), const agx::Real height=agx::Real(1)) |
| | Constructor.
|
| |
| virtual agx::SPDMatrix3x3 | calculateInertia (agx::Real mass) const override |
| | Calculate the inertia for the shape given a mass.
|
| |
| virtual BoundingAABB | calculateLocalBound () const override |
| | Calculate the bounding volume in the local coordinate system.
|
| |
| virtual Shape * | clone () const override |
| | Create a clone.
|
| |
| agx::Real | getHeight () const |
| |
| agx::Real | getRadius () const |
| |
| 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 bool | hasSupportFunction () const override |
| |
| void | set (const agx::Real radius, const agx::Real height) |
| | Set the radius and height of the capsule.
|
| |
| void | setHeight (const agx::Real height) |
| | Set the height of the capsule.
|
| |
| void | setRadius (const agx::Real radius) |
| | Set the radius of the capsule.
|
| |
| virtual const BoundingAABB & | updateBoundingVolume () override |
| | Calculate the bounding volume based on the current Shape parameters including transformation.
|
| |
| ShapeGroup * | asGroup () |
| | Auto-cast shape to group.
|
| |
| const ShapeGroup * | asGroup () const |
| | Auto-cast shape to group.
|
| |
| virtual agx::Real | calculateBoundingRadius (BoundingAABB &localAABB) const |
| | Calculate the bounding volume (AABB) into localAABB and calculate the bounding radius based on the new AABB size.
|
| |
| virtual agx::SPDMatrix3x3 | calculateInertia (agx::Real mass) const =0 |
| | Calculate the inertia for the shape given a mass.
|
| |
| virtual BoundingAABB | calculateLocalBound () const =0 |
| | Calculate the bounding volume in the local coordinate system.
|
| |
| virtual Shape * | clone () const |
| | Create a clone.
|
| |
| const BoundingAABB & | getBoundingVolume () const |
| |
| virtual agx::Vec3 | getCenter () const |
| |
| agx::Physics::Geometry::ShapePtr | getEntity () const |
| |
| Geometry * | getGeometry () |
| |
| const Geometry * | getGeometry () const |
| |
| agx::AffineMatrix4x4 | getLocalTransform () const |
| |
| agx::UInt32 | getModifiedCount () const |
| |
| agxCollide::RenderData * | getRenderData () |
| | If this is a ShapeGroup, then this method will return nullptr as the render data is stored in the actual children (Box, Mesh etc.
|
| |
| const agxCollide::RenderData * | getRenderData () const |
| | If this is a ShapeGroup, then this method will return nullptr as the render data is stored in the actual children (Box, Mesh etc.
|
| |
| virtual agx::Vec3 | getSupportPoint (const agx::Vec3 &supportDirection) const |
| | Returns the support point on face of the shape.
|
| |
| agx::AffineMatrix4x4 | getTransform () const |
| |
| agx::UInt8 | getType () const |
| |
| const char * | getTypeName () const |
| |
| virtual agx::Real | getVolume () const =0 |
| | Return the volume of the shape.
|
| |
| virtual bool | hasSupportFunction () const |
| |
| bool | isGroup () const |
| |
| virtual void | propagateTransform (const agx::AffineMatrix4x4 &transform) |
| |
| virtual void | setRenderData (agxCollide::RenderData *renderData) |
| | Store render data with the Shape.
|
| |
| virtual const BoundingAABB & | updateBoundingVolume ()=0 |
| | Calculate the bounding volume based on the current Shape parameters including transformation.
|
| |
| | Referenced () |
| | Default constructor.
|
| |
| | Referenced (const Referenced &) |
| |
| template<typename T > |
| T * | as () |
| | Subclass casting.
|
| |
| template<typename T > |
| const T * | as () const |
| |
| template<typename T > |
| T * | asSafe () |
| | Safe subclass casting, return nullptr if template type does not match.
|
| |
| template<typename T > |
| const T * | asSafe () const |
| |
| int | getReferenceCount () const |
| |
| template<typename T > |
| bool | is () const |
| | Subclass test.
|
| |
| Referenced & | operator= (const Referenced &) |
| | Assignment operator. Will increment the number of references to the referenced object.
|
| |
| void | reference (void *ptr=nullptr) const |
| | Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
|
| |
| void | unreference (void *ptr=nullptr) const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it.
|
| |
| void | unreference_nodelete () const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it.
|
| |
| virtual | ~Serializable () |
| | Destructor for normal C++ use but hidden from SWIG bindings.
|
| |
| virtual const char * | getClassName () const |
| |
| bool | getEnableSerialization () const |
| |
| bool | getEnableUuidGeneration () |
| |
| agx::UInt32 | getIndex () const |
| | This index is given at creation of this object.
|
| |
| virtual StorageAgent * | getStorageAgent () const =0 |
| |
| agx::Uuid | getUuid () const |
| |
| bool | isFinished () const |
| |
| void | setEnableSerialization (bool flag) |
| | Set to false to disable serialization of this object.
|
| |
| void | setFinished () |
| | Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.
|
| |
| void | setUuid (const agx::Uuid &uuid) |
| | Explicitly set a Uuid on a serializable object.
|
| |
Implements a Capsule shape for geometric intersection tests.
The capsule is oriented as the Y-axis with origin at center of mass.
Definition at line 34 of file Capsule.h.