14#ifndef PHYSXCAPSULESHAPE_H
15#define PHYSXCAPSULESHAPE_H
39class EXPCL_PANDAPHYSX PhysxCapsuleShape :
public PhysxShape {
42 INLINE PhysxCapsuleShape();
43 INLINE ~PhysxCapsuleShape();
54 INLINE NxShape *ptr()
const {
return (NxShape *)_ptr; };
56 void link(NxShape *shapePtr);
66 static void init_type() {
67 PhysxShape::init_type();
69 PhysxShape::get_class_type());
72 return get_class_type();
76 return get_class_type();
Descriptor class for PhysxCapsuleShape.
void set_height(float height)
Alters the height of the capsule.
float get_height() const
Retrieves the height of the capsule.
void save_to_desc(PhysxCapsuleShapeDesc &shapeDesc) const
Saves the state of the shape object to a descriptor.
void set_radius(float radius)
Alters the radius of the capsule.
float get_radius() const
Retrieves the radius of the capsule.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...