RavEngine
Loading...
Searching...
No Matches
CustomCylinder Struct Reference
Inheritance diagram for CustomCylinder:
[legend]
Collaboration diagram for CustomCylinder:
[legend]

Public Member Functions

 CustomCylinder (float _height, float _radius, float _margin)
 
virtual DECLARE_CUSTOM_GEOMETRY_TYPE void computeMassProperties (const physx::PxGeometry &geometry, physx::PxMassProperties &massProperties) const
 Compute custom geometry mass properties. For geometries usable with dynamic rigidbodies.
 
virtual physx::PxVec3 supportLocal (const physx::PxVec3 &dir) const
 Return the farthest point on the user defined shape's core in given direction.
 
- Public Member Functions inherited from CustomConvex
 CustomConvex (float margin)
 
virtual physx::PxBounds3 getLocalBounds (const physx::PxGeometry &) const
 Return local bounds.
 
virtual bool generateContacts (const physx::PxGeometry &geom0, const physx::PxGeometry &geom1, const physx::PxTransform &pose0, const physx::PxTransform &pose1, const physx::PxReal contactDistance, const physx::PxReal meshContactMargin, const physx::PxReal toleranceLength, physx::PxContactBuffer &contactBuffer) const
 Contacts generation. Generate collision contacts between two geometries in given poses.
 
virtual physx::PxU32 raycast (const physx::PxVec3 &origin, const physx::PxVec3 &unitDir, const physx::PxGeometry &geom, const physx::PxTransform &pose, physx::PxReal maxDist, physx::PxHitFlags hitFlags, physx::PxU32 maxHits, physx::PxGeomRaycastHit *rayHits, physx::PxU32 stride, physx::PxRaycastThreadContext *) const
 
virtual bool overlap (const physx::PxGeometry &geom0, const physx::PxTransform &pose0, const physx::PxGeometry &geom1, const physx::PxTransform &pose1, physx::PxOverlapThreadContext *) const
 Overlap. Test if geometries overlap.
 
virtual bool sweep (const physx::PxVec3 &unitDir, const physx::PxReal maxDist, const physx::PxGeometry &geom0, const physx::PxTransform &pose0, const physx::PxGeometry &geom1, const physx::PxTransform &pose1, physx::PxGeomSweepHit &sweepHit, physx::PxHitFlags hitFlags, const physx::PxReal inflation, physx::PxSweepThreadContext *) const
 
virtual void visualize (const physx::PxGeometry &, physx::PxRenderOutput &, const physx::PxTransform &, const physx::PxBounds3 &) const
 Visualize custom geometry for debugging. Optional.
 
virtual bool usePersistentContactManifold (const physx::PxGeometry &, physx::PxReal &) const
 Compatible with PhysX's PCM feature. Allows to optimize contact generation.
 
virtual physx::PxReal getMargin () const
 Return the user defined shape margin. Margin should be greater than or equal to 0.
 
- Public Member Functions inherited from physx::PxCustomGeometry::Callbacks
virtual Type getCustomType () const =0
 Return custom type. The type purpose is for user to differentiate custom geometries. Not used by PhysX.
 
virtual PxU32 raycast (const PxVec3 &origin, const PxVec3 &unitDir, const PxGeometry &geom, const PxTransform &pose, PxReal maxDist, PxHitFlags hitFlags, PxU32 maxHits, PxGeomRaycastHit *rayHits, PxU32 stride, PxRaycastThreadContext *threadContext) const =0
 Raycast. Cast a ray against the geometry in given pose.
 
virtual bool sweep (const PxVec3 &unitDir, const PxReal maxDist, const PxGeometry &geom0, const PxTransform &pose0, const PxGeometry &geom1, const PxTransform &pose1, PxGeomSweepHit &sweepHit, PxHitFlags hitFlags, const PxReal inflation, PxSweepThreadContext *threadContext) const =0
 Sweep. Sweep one geometry against the other.
 

Public Attributes

float height
 
float radius
 
- Public Attributes inherited from CustomConvex
float margin
 

Member Function Documentation

◆ computeMassProperties()

void CustomCylinder::computeMassProperties ( const physx::PxGeometry &  geometry,
physx::PxMassProperties &  massProperties 
) const
virtual

Compute custom geometry mass properties. For geometries usable with dynamic rigidbodies.

Parameters
[in]geometryThis geometry.
[out]massPropertiesMass properties to compute.

Implements physx::PxCustomGeometry::Callbacks.

◆ supportLocal()

PxVec3 CustomCylinder::supportLocal ( const physx::PxVec3 &  dir) const
virtual

Return the farthest point on the user defined shape's core in given direction.

Parameters
[in]dirDirection
Returns
Farthest point in given direction.

Implements physx::PxGjkQuery::Support.


The documentation for this struct was generated from the following files: