class: ege::PhysicsShape


Description:



enum:

Constructor and Destructor:

+                                       PhysicsShape  (void );
+ virtual ~PhysicsShape (void );

Synopsis:

+         ege::PhysicsShape*            create        (const std::string & _name);
+ virtual enum ege::PhysicsShape::type getType (void );
+ virtual bool parse (const char* _line);
+ virtual void display (void );
+ const vec4 & getQuaternion (void ) const;
+ const vec3 & getOrigin (void ) const;
+ bool isBox (void );
+ bool isCylinder (void );
+ bool isCapsule (void );
+ bool isCone (void );
+ bool isConvexHull (void );
+ bool isSphere (void );
+ virtual const ege::PhysicsBox* toBox (void ) const;
+ virtual ege::PhysicsBox* toBox (void );
+ virtual const ege::PhysicsCylinder* toCylinder (void ) const;
+ virtual ege::PhysicsCylinder* toCylinder (void );
+ virtual const ege::PhysicsCapsule* toCapsule (void ) const;
+ virtual ege::PhysicsCapsule* toCapsule (void );
+ virtual const ege::PhysicsCone* toCone (void ) const;
+ virtual ege::PhysicsCone* toCone (void );
+ virtual const ege::PhysicsConvexHull* toConvexHull (void ) const;
+ virtual ege::PhysicsConvexHull* toConvexHull (void );
+ virtual const ege::PhysicsSphere* toSphere (void ) const;
+ virtual ege::PhysicsSphere* toSphere (void );

Object Hierarchy:

ege::PhysicsShape
+--> ege::PhysicsCylinder
+--> ege::PhysicsConvexHull
+--> ege::PhysicsCone
+--> ege::PhysicsBox
+--> ege::PhysicsCapsule
+--> ege::PhysicsSphere

Detail:

create

+ ege::PhysicsShape* create (const std::string & _name);



PhysicsShape

+  PhysicsShape (void );



~PhysicsShape

+ virtual  ~PhysicsShape (void );



getType

+ virtual enum ege::PhysicsShape::type getType (void );



parse

+ virtual bool parse (const char* _line);



display

+ virtual void display (void );



getQuaternion

+ const vec4 & getQuaternion (void ) const;



getOrigin

+ const vec3 & getOrigin (void ) const;



isBox

+ bool isBox (void );



isCylinder

+ bool isCylinder (void );



isCapsule

+ bool isCapsule (void );



isCone

+ bool isCone (void );



isConvexHull

+ bool isConvexHull (void );



isSphere

+ bool isSphere (void );



toBox

+ virtual const ege::PhysicsBox* toBox (void ) const;



toBox

+ virtual ege::PhysicsBox* toBox (void );



toCylinder

+ virtual const ege::PhysicsCylinder* toCylinder (void ) const;



toCylinder

+ virtual ege::PhysicsCylinder* toCylinder (void );



toCapsule

+ virtual const ege::PhysicsCapsule* toCapsule (void ) const;



toCapsule

+ virtual ege::PhysicsCapsule* toCapsule (void );



toCone

+ virtual const ege::PhysicsCone* toCone (void ) const;



toCone

+ virtual ege::PhysicsCone* toCone (void );



toConvexHull

+ virtual const ege::PhysicsConvexHull* toConvexHull (void ) const;



toConvexHull

+ virtual ege::PhysicsConvexHull* toConvexHull (void );



toSphere

+ virtual const ege::PhysicsSphere* toSphere (void ) const;



toSphere

+ virtual ege::PhysicsSphere* toSphere (void );