15 #ifndef PHYSXCAPSULESHAPE_H
16 #define PHYSXCAPSULESHAPE_H
18 #include "pandabase.h"
21 #include "physxShape.h"
22 #include "physx_includes.h"
50 INLINE ~PhysxCapsuleShape();
54 void set_radius(
float radius);
55 void set_height(
float height);
57 float get_radius()
const;
58 float get_height()
const;
62 INLINE NxShape *ptr()
const {
return (NxShape *)_ptr; };
64 void link(NxShape *shapePtr);
75 static void init_type() {
76 PhysxShape::init_type();
77 register_type(_type_handle,
"PhysxCapsuleShape",
78 PhysxShape::get_class_type());
81 return get_class_type();
85 return get_class_type();
92 #include "physxCapsuleShape.I"
94 #endif // PHYSXCAPSULESHAPE_H
Abstract base class for shapes.
Descriptor class for PhysxCapsuleShape.
TypeHandle is the identifier used to differentiate C++ class types.
A capsule shaped collision detection primitive, also known as a line swept sphere.