18 #include "pandabase.h"
19 #include "pointerTo.h"
22 #include "physxObject.h"
23 #include "physxEnums.h"
24 #include "physx_includes.h"
48 void set_name(
const char *name);
49 void set_flag(
const PhysxShapeFlag flag,
bool value);
50 void set_skin_width(
float skinWidth);
51 void set_group(
unsigned short group);
52 void set_local_pos(
const LPoint3f &pos);
55 void set_material_index(
unsigned short idx);
59 const char *get_name()
const;
60 bool get_flag(
const PhysxShapeFlag flag)
const;
61 float get_skin_width()
const;
62 unsigned short get_group()
const;
65 unsigned short get_material_index()
const;
70 bool check_overlap_aabb(
const PhysxBounds3 &world_bounds)
const;
71 bool check_overlap_capsule(
const PhysxCapsule &world_capsule)
const;
72 bool check_overlap_obb(
const PhysxBox &world_box)
const;
73 bool check_overlap_sphere(
const PhysxSphere &world_sphere)
const;
76 INLINE
void ls()
const;
77 INLINE
void ls(ostream &out,
int indent_level=0)
const;
80 static PhysxShape *factory(NxShapeType shapeType);
82 virtual NxShape *ptr()
const = 0;
84 virtual void link(NxShape *shapePtr) = 0;
85 virtual void unlink() = 0;
99 static void init_type() {
100 PhysxObject::init_type();
101 register_type(_type_handle,
"PhysxShape",
102 PhysxObject::get_class_type());
105 return get_class_type();
109 return get_class_type();
116 #include "physxShape.I"
118 #endif // PHYSXSHAPE_H
Represents a sphere defined by its center point and radius.
Represents an oriented bounding box, as a center point, extents(radii) and a rotation.
Abstract base class for shapes.
Represention of a axis aligned bounding box.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
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.
This is a 4-by-4 transform matrix.
Actors are the main simulation objects.
TypeHandle is the identifier used to differentiate C++ class types.
Represents an ray as an origin and direction.