14#ifndef PHYSXBOXSHAPE_H
15#define PHYSXBOXSHAPE_H
36class EXPCL_PANDAPHYSX PhysxBoxShape :
public PhysxShape {
39 INLINE PhysxBoxShape();
40 INLINE ~PhysxBoxShape();
48 INLINE NxShape *ptr()
const {
return (NxShape *)_ptr; };
50 void link(NxShape *shapePtr);
60 static void init_type() {
61 PhysxShape::init_type();
63 PhysxShape::get_class_type());
66 return get_class_type();
70 return get_class_type();
Descriptor class for PhysxBoxShape.
void save_to_desc(PhysxBoxShapeDesc &shapeDesc) const
Saves the state of the shape object to a descriptor.
void set_dimensions(const LVector3f &dimensions)
Sets the box dimensions.
LVector3f get_dimensions() const
Retrieves the dimensions of the box.
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(),...