14#ifndef PHYSXSPHEREFORCEFIELDSHAPE_H
15#define PHYSXSPHEREFORCEFIELDSHAPE_H
28class EXPCL_PANDAPHYSX PhysxSphereForceFieldShape :
public PhysxForceFieldShape {
31 INLINE PhysxSphereForceFieldShape();
32 INLINE ~PhysxSphereForceFieldShape();
41 INLINE NxForceFieldShape *ptr()
const {
return (NxForceFieldShape *)_ptr; };
43 void link(NxForceFieldShape *shapePtr);
47 NxSphereForceFieldShape *_ptr;
53 static void init_type() {
54 PhysxForceFieldShape::init_type();
56 PhysxForceFieldShape::get_class_type());
59 return get_class_type();
63 return get_class_type();
A descriptor for a sphere force field shape.
float get_radius() const
Returns the radius of the sphere.
void save_to_desc(PhysxSphereForceFieldShapeDesc &shapeDesc) const
Saves the state of the shape object to a descriptor.
void set_radius(float radius)
Sets the sphere radius.
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(),...