![]() |
Trax3 3.1.0
trax track library
|
A Capsule is a Cylinder with round caps. More...
#include <C:/Trend/Development/Trax3/Code/trax/rigid/Geom.h>

Public Member Functions | |
| virtual void | Radius (Length radius)=0 |
| Sets the radius aof the cylinder part and the caps. | |
| virtual Length | Radius () const =0 |
| Gets the radius aof the cylinder part and the caps. | |
| virtual void | SetLength (Length length)=0 |
| Sets the length of the capsule without the caps. | |
| virtual Length | GetLength () const =0 |
| Gets the length of the capsule without the caps. | |
| Public Member Functions inherited from trax::Geom | |
| virtual const char * | TypeName () const noexcept=0 |
| virtual std::unique_ptr< Geom > | Instance () const noexcept=0 |
| Creates a new geom that will share shape data with the existing one. | |
| virtual void | SetName (const char *name) noexcept=0 |
| Sets the name of the Geom. | |
| virtual const char * | GetName () const noexcept=0 |
| virtual void | SetFrame (const spat::Frame< Length, One > &frame) noexcept=0 |
| Sets position and orientation (pose) relative to a Body's frame. | |
| virtual void | GetFrame (spat::Frame< Length, One > &frame) const noexcept=0 |
| Gets the pose relative to a Body's frame. | |
| virtual spat::Box< Length > | GetExtent () const noexcept=0 |
| Gets the minimum axis aligned box that includes the the Geom completely. | |
| virtual void | SetMaterial (const Material &material) noexcept=0 |
| Sets the material to be applied with the Geom. | |
| virtual const Material & | GetMaterial () const noexcept=0 |
| virtual GeomType | GetGeomType () const noexcept=0 |
| virtual void | TypeFilter (Filters type) noexcept=0 |
| Specify a flag for the type of this Geom. | |
| virtual Filters | TypeFilter () const noexcept=0 |
| virtual void | CollisionFilter (unsigned int collideWith) noexcept=0 |
| Specify the collision bitfield. | |
| virtual unsigned int | CollisionFilter () const noexcept=0 |
Additional Inherited Members | |
| Public Types inherited from trax::Geom | |
| enum | Filters : unsigned int { none = 0 , fBogie = 0x00000001 , fChildBogie = 0x00000002 , fWheelset = 0x00000004 , fCargo = 0x00000008 , fTerrain = 0x00000010 , fBogieSpace = 0x00000020 , fCrane = 0x00000040 , fConstruction = 0x00000080 , fHook = 0x00000100 , fHookFixed = 0x00000200 , fCouplingNorth = 0x00000400 , fCouplingSouth = 0x00000800 , fTriggerShape = 0x00001000 , fCabin = 0x00002000 , fBogieNoCabin = 0x00004000 , fBuffer = 0x00008000 , fTrack = 0x00010000 , fMovableTrack = 0x00020000 , fAll = 0x2fffffff } |
| Filter flags that will serve in fast collision testing. More... | |
A Capsule is a Cylinder with round caps.
The radius is the radius of the spherical caps and the radius of the cylinder part of the capsule. The length is the length of the cylinder part only. The capsule is aligned along it's local z (binormal) axis and centered around the origin.