PxConvexCore#

Defined in include/geometry/PxConvexCoreGeometry.h

Structs#

Box

Box core data.

Cone

Cone core data.

Cylinder

Cylinder core data.

Ellipsoid

Ellipsoid core data.

Point

Point core data.

Segment

Segment core data.

class PxConvexCore#

Pre-authored cores for convex core geometry.

Public Types

enum Type#

Enumeration of core types for convex core geometries.

This enum defines the various cores that can be used as the basis for creating convex core geometries. Each type represents a different fundamental shape that can be extended with a margin to create more complex convex shapes.

Values:

enumerator ePOINT#
enumerator eSEGMENT#
enumerator eBOX#
enumerator eELLIPSOID#
enumerator eCYLINDER#
enumerator eCONE#
enumerator eCOUNT#
struct Box#

Box core data.

The box is defined by its extents, centered at the origin of the geometry’s local space, and aligned with the local space’s axes

Public Functions

inline Box()#
inline Box(PxReal eX, PxReal eY, PxReal eZ)#

Constructs a BoxCore with specified extents.

Parameters:
  • eX – Extent in the x direction

  • eY – Extent in the y direction

  • eZ – Extent in the z direction

inline Box(const PxVec3 &_extents)#

Constructs a BoxCore with specified extents.

Parameters:

_extents – Vector containing extents in x, y, and z directions

Public Members

PxVec3 extents#

Box extents.

Public Static Attributes

static const Type TYPE = eBOX#
struct Cone#

Cone core data.

The cone is defined by its height and base radius. It is centered at the origin of the geometry’s local space with its axis along the X axis and the base at x = -height/2

Public Functions

inline Cone()#
inline Cone(PxReal _height, PxReal _radius)#

Constructs a ConeCore with specified height and radius.

Parameters:
  • _heightCone height

  • _radiusCone base radius

Public Members

PxReal height#

Cone height.

PxReal radius#

Cone base radius.

Public Static Attributes

static const Type TYPE = eCONE#
struct Cylinder#

Cylinder core data.

The cylinder is defined by its height and radius. It is centered at the origin of the geometry’s local space with its axis along the X axis

Public Functions

inline Cylinder()#
inline Cylinder(PxReal _height, PxReal _radius)#

Constructs a CylinderCore with specified height and radius.

Parameters:

Public Members

PxReal height#

Cylinder height.

PxReal radius#

Cylinder radius.

Public Static Attributes

static const Type TYPE = eCYLINDER#
struct Ellipsoid#

Ellipsoid core data.

The ellipsoid is defined by its radii and is centered at the origin of the geometry’s local space

Public Functions

inline Ellipsoid()#
inline Ellipsoid(PxReal rX, PxReal rY, PxReal rZ)#

Constructs an EllipsoidCore with specified radii.

Parameters:
  • rX – Radius in the x direction

  • rY – Radius in the y direction

  • rZ – Radius in the z direction

inline Ellipsoid(const PxVec3 &_radii)#

Constructs an EllipsoidCore with specified radii.

Parameters:

_radii – Vector containing radii in x, y, and z directions

Public Members

PxVec3 radii#

Ellipsoid radii.

Public Static Attributes

static const Type TYPE = eELLIPSOID#
struct Point#

Point core data.

The point core has no additional data. The point is located at the origin of the geometry’s local space

Public Static Attributes

static const Type TYPE = ePOINT#
struct Segment#

Segment core data.

The segment is defined by its length and goes along the geometry’s local space X axis, from -length/2 to length/2

Public Functions

inline Segment()#
inline Segment(PxReal _length)#

Constructs a SegmentCore with a specified length.

Parameters:

_lengthSegment length

Public Members

PxReal length#

Segment length.

Public Static Attributes

static const Type TYPE = eSEGMENT#