39class EXPCL_PANDAPHYSX PhysxShape :
public PhysxObject,
public PhysxEnums {
47 void set_flag(
const PhysxShapeFlag flag,
bool value);
58 bool get_flag(
const PhysxShapeFlag flag)
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();
Actors are the main simulation objects.
Represention of a axis aligned bounding box.
Represents an oriented bounding box, as a center point, extents(radii) and a rotation.
This class exists just to provide scoping for the enums shared by PhysX classes.
A class for describing a shape's surface properties.
Represents an ray as an origin and direction.
This structure captures results for a single raycast query.
void set_local_pos(const LPoint3f &pos)
Set the position of the shape in actor space, i.e.
void set_groups_mask(const PhysxGroupsMask &mask)
Sets 128-bit mask used for collision filtering.
LPoint3f get_local_pos() const
Retrieve the position of the shape in actor space, i.e.
bool check_overlap_aabb(const PhysxBounds3 &world_bounds) const
Checks whether the shape overlaps a world-space AABB or not.
void set_group(unsigned short group)
Sets which collision group this shape is part of.
PhysxGroupsMask get_groups_mask() const
Gets 128-bit mask used for collision filtering.
void set_material_index(unsigned short idx)
Assigns a material index to the shape.
bool get_flag(const PhysxShapeFlag flag) const
Returns the specified shape flag.
void set_name(const char *name)
Sets a name string for this object.
void set_material(const PhysxMaterial &material)
Assigns a material to the shape.
bool check_overlap_obb(const PhysxBox &world_box) const
Checks whether the shape overlaps a world-space OBB or not.
void set_skin_width(float skinWidth)
Sets the skin width.
const char * get_name() const
Returns the name string.
float get_skin_width() const
Returns the skin width.
bool check_overlap_sphere(const PhysxSphere &world_sphere) const
Checks whether the shape overlaps a world-space sphere or not.
void set_local_mat(const LMatrix4f &mat)
Set the transform of the shape in actor space, i.e.
unsigned short get_group() const
Retrieves the collision group set for this shape.
LMatrix4f get_local_mat() const
Retrieve the transform of the shape in actor space, i.e.
unsigned short get_material_index() const
Returns the material index currently assigned to the shape.
void set_flag(const PhysxShapeFlag flag, bool value)
Sets the specified shape flag.
PhysxBounds3 get_world_bounds() const
Returns a world space AABB enclosing this shape.
bool check_overlap_capsule(const PhysxCapsule &world_capsule) const
Checks whether the shape overlaps a world-space capsule or not.
PhysxActor * get_actor() const
Retrieves the actor which this shape is associated with.
Represents a sphere defined by its center point and 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.
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(),...