46 void set_name(
const char *name);
47 void set_flag(
const PhysxShapeFlag flag,
bool value);
48 void set_skin_width(
float skinWidth);
49 void set_group(
unsigned short group);
50 void set_local_pos(
const LPoint3f &pos);
51 void set_local_mat(
const LMatrix4f &mat);
53 void set_material_index(
unsigned short idx);
57 const char *get_name()
const;
58 bool get_flag(
const PhysxShapeFlag flag)
const;
59 float get_skin_width()
const;
60 unsigned short get_group()
const;
61 LPoint3f get_local_pos()
const;
62 LMatrix4f get_local_mat()
const;
63 unsigned short get_material_index()
const;
68 bool check_overlap_aabb(
const PhysxBounds3 &world_bounds)
const;
69 bool check_overlap_capsule(
const PhysxCapsule &world_capsule)
const;
70 bool check_overlap_obb(
const PhysxBox &world_box)
const;
71 bool check_overlap_sphere(
const PhysxSphere &world_sphere)
const;
74 INLINE
void ls()
const;
75 INLINE
void ls(std::ostream &out,
int indent_level=0)
const;
78 static PhysxShape *factory(NxShapeType shapeType);
80 virtual NxShape *ptr()
const = 0;
82 virtual void link(NxShape *shapePtr) = 0;
83 virtual void unlink() = 0;
96 static void init_type() {
97 PhysxObject::init_type();
99 PhysxObject::get_class_type());
102 return get_class_type();
106 return get_class_type();
115 #endif // PHYSXSHAPE_H PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Represents a sphere defined by its center point and radius.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Represents an oriented bounding box, as a center point, extents(radii) and a rotation.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Abstract base class for shapes.
Represention of a axis aligned bounding box.
A class for describing a shape's surface properties.
This structure captures results for a single raycast query.
This class exists just to provide scoping for the enums shared by PhysX classes.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Actors are the main simulation objects.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
Represents an ray as an origin and direction.