32#include "PxPhysicsAPI.h"
49 void setDimensions(
int x,
int y,
int z);
54 void setVoxelSize(
float x,
float y,
float z);
56 float voxelSizeX()
const;
57 float voxelSizeY()
const;
58 float voxelSizeZ()
const;
62 void setVoxel(
int x,
int y,
int z,
bool yes =
true);
64 bool voxel(
int x,
int y,
int z)
const;
68 void setFloorVoxels(
int layers);
76 void pointCoords(
const physx::PxVec3& p,
int& x,
int& y,
int& z)
const;
78 void getVoxelRegion(
const physx::PxBounds3& b,
int& sx,
int& sy,
int& sz,
int& ex,
int& ey,
int& ez)
const;
85 const physx::PxReal contactDistance,
const physx::PxReal meshContactMargin,
const physx::PxReal toleranceLength,
90 virtual bool sweep(
const physx::PxVec3& unitDir,
const physx::PxReal maxDist,
Class representing 3D range or axis aligned bounding box.
Definition PxBounds3.h:58
A geometry object.
Definition PxGeometry.h:79
Utility class to compute and manipulate mass and inertia tensor properties.
Definition PxMassProperties.h:65
Definition PxRenderOutput.h:50
Definition PxUserAllocated.h:43
3 Element vector class.
Definition PxVec3.h:50
#define DECLARE_CUSTOM_GEOMETRY_TYPE
Used in pair with IMPLEMENT_CUSTOM_GEOMETRY_TYPE to overwrite Callbacks::getCustomType() callback.
Definition PxCustomGeometry.h:291
virtual void computeMassProperties(const physx::PxGeometry &, physx::PxMassProperties &) const
Compute custom geometry mass properties. For geometries usable with dynamic rigidbodies.
Definition VoxelMap.h:94
virtual DECLARE_CUSTOM_GEOMETRY_TYPE physx::PxBounds3 getLocalBounds(const physx::PxGeometry &) const
Return local bounds.
Definition VoxelMap.cpp:197
virtual void visualize(const physx::PxGeometry &, physx::PxRenderOutput &, const physx::PxTransform &, const physx::PxBounds3 &) const
Visualize custom geometry for debugging. Optional.
Definition VoxelMap.cpp:419
virtual bool usePersistentContactManifold(const physx::PxGeometry &, physx::PxReal &) const
Compatible with PhysX's PCM feature. Allows to optimize contact generation.
Definition VoxelMap.h:95
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.
Definition VoxelMap.cpp:202
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.
Definition VoxelMap.cpp:320
Custom geometry callbacks structure. User should inherit this and implement all pure virtual function...
Definition PxCustomGeometry.h:102
Stores results of raycast queries.
Definition PxGeometryHit.h:151
Stores results of sweep queries.
Definition PxGeometryHit.h:175
A per-thread context passed to low-level query functions.
Definition PxGeometryQueryContext.h:52