14#ifndef PHYSXBOXFORCEFIELDSHAPE_H
15#define PHYSXBOXFORCEFIELDSHAPE_H
28class EXPCL_PANDAPHYSX PhysxBoxForceFieldShape :
public PhysxForceFieldShape {
30 INLINE PhysxBoxForceFieldShape();
31 INLINE ~PhysxBoxForceFieldShape();
39 INLINE NxForceFieldShape *ptr()
const {
return (NxForceFieldShape *)_ptr; };
41 void link(NxForceFieldShape *shapePtr);
45 NxBoxForceFieldShape *_ptr;
51 static void init_type() {
52 PhysxForceFieldShape::init_type();
54 PhysxForceFieldShape::get_class_type());
57 return get_class_type();
61 return get_class_type();
Descriptor for a box force field shape.
void save_to_desc(PhysxBoxForceFieldShapeDesc &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(),...