14#ifndef PHYSXCAPSULEFORCEFIELDSHAPE_H
15#define PHYSXCAPSULEFORCEFIELDSHAPE_H
28class EXPCL_PANDAPHYSX PhysxCapsuleForceFieldShape :
public PhysxForceFieldShape {
31 INLINE PhysxCapsuleForceFieldShape();
32 INLINE ~PhysxCapsuleForceFieldShape();
43 INLINE NxForceFieldShape *ptr()
const {
return (NxForceFieldShape *)_ptr; };
45 void link(NxForceFieldShape *shapePtr);
49 NxCapsuleForceFieldShape *_ptr;
55 static void init_type() {
56 PhysxForceFieldShape::init_type();
58 PhysxForceFieldShape::get_class_type());
61 return get_class_type();
65 return get_class_type();
Descriptor for a capsule force field shape.
void set_height(float height)
Alters the height of the capsule.
float get_radius() const
Retrieves the radius of the capsule.
void set_radius(float radius)
Alters the radius of the capsule.
void save_to_desc(PhysxCapsuleForceFieldShapeDesc &shapeDesc) const
Saves the state of the shape object to a descriptor.
float get_height() const
Retrieves the height 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(),...