14#ifndef PHYSXFORCEFIELDSHAPE_H
15#define PHYSXFORCEFIELDSHAPE_H
31class EXPCL_PANDAPHYSX PhysxForceFieldShape :
public PhysxObject,
public PhysxEnums {
40 void set_mat(
const LMatrix4f &mat);
41 void set_pos(
const LPoint3f &pos);
47 INLINE
void ls()
const;
48 INLINE
void ls(std::ostream &out,
int indent_level=0)
const;
51 static PhysxForceFieldShape *factory(NxShapeType shapeType);
53 virtual NxForceFieldShape *ptr()
const = 0;
55 virtual void link(NxForceFieldShape *shapePtr) = 0;
56 virtual void unlink() = 0;
59 INLINE PhysxForceFieldShape();
68 static void init_type() {
69 PhysxObject::init_type();
71 PhysxObject::get_class_type());
74 return get_class_type();
78 return get_class_type();
This class exists just to provide scoping for the enums shared by PhysX classes.
void set_mat(const LMatrix4f &mat)
Sets the force field shape's transform.
LPoint3f get_pos() const
Returns the force field shape's translation.
PhysxForceField * get_force_field() const
Returns the owning force field if this is a shape of an include group, else NULL will be returned.
const char * get_name() const
Returns the name string.
PhysxForceFieldShapeGroup * get_shape_group() const
Returns the owning force field shape group.
void set_pos(const LPoint3f &pos)
Sets the force field shape's translation.
void set_name(const char *name)
Sets a name string for this object.
LMatrix4f get_mat() const
Returns the force field shape's transform.
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.
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(),...