30 #ifndef PX_PHYSICS_NX_PHYSICS 31 #define PX_PHYSICS_NX_PHYSICS 99 virtual void release() = 0;
116 virtual PxAggregate* createAggregate(
PxU32 maxSize,
bool enableSelfCollision) = 0;
148 virtual PxU32 getNbTriangleMeshes()
const = 0;
185 virtual PxU32 getNbHeightFields()
const = 0;
222 virtual PxU32 getNbConvexMeshes()
const = 0;
257 virtual PxU32 getNbBVHStructures()
const = 0;
300 virtual PxU32 getNbScenes()
const = 0;
379 bool isExclusive =
false,
383 return createShape(
geometry, &materialPtr, 1, isExclusive, shapeFlags);
404 bool isExclusive =
false,
414 virtual PxU32 getNbShapes()
const = 0;
500 virtual PxU32 getNbMaterials()
const = 0;
662 physx::PxFoundation& foundation,
663 const physx::PxTolerancesScale& scale,
664 bool trackOutstandingAllocations =
false,
665 physx::PxPvd* pvd = NULL);
693 physx::PxFoundation& foundation,
694 const physx::PxTolerancesScale& scale,
695 bool trackOutstandingAllocations =
false,
696 physx::PxPvd* pvd = NULL )
698 physx::PxPhysics* physics =
PxCreateBasePhysics(version, foundation, scale, trackOutstandingAllocations, pvd);
718 #pragma clang diagnostic push 719 #pragma clang diagnostic ignored "-Wreturn-type-c-linkage" 725 #pragma clang diagnostic pop Definition: GuContactBuffer.h:37
Descriptor class for scenes. See PxScene.
Definition: PxSceneDesc.h:493
A scene is a collection of bodies and constraints which can interact.
Definition: PxScene.h:169
Class serving as a registry for XML (RepX) and binary serializable types.
Definition: PxSerialFramework.h:297
PxRigidDynamic represents a dynamic rigid simulation object in the physics SDK.
Definition: PxRigidDynamic.h:83
PxReal restitution
restitution parameter for determining additional "bounce"
Definition: PxConstraintDesc.h:104
Abstract class for collision shapes.
Definition: PxShape.h:142
#define PX_FORCE_INLINE
Definition: PxPreprocessor.h:364
float PxReal
Definition: PxSimpleTypes.h:78
#define PX_C_EXPORT
Definition: Pxc.h:54
#define PX_CALL_CONV
Definition: PxPreprocessor.h:328
uint32_t PxU32
Definition: PxSimpleTypes.h:71
A triangle mesh, also called a 'polygon soup'.
Definition: PxTriangleMesh.h:126
#define PX_PHYSX_CORE_API
Definition: PxPhysXCommonConfig.h:59
A geometry object.
Definition: PxGeometry.h:75
A convex mesh.
Definition: PxConvexMesh.h:84
A precomputed pruning structure to accelerate scene queries against newly added actors.
Definition: PxPruningStructure.h:62
The shape will partake in collision in the physical simulation.
Definition: PxShape.h:79
PxRigidActor represents a base class shared between dynamic and static rigid bodies in the physics SD...
Definition: PxRigidActor.h:58
The shape will partake in scene queries (ray casts, overlap tests, sweeps, ...).
Definition: PxShape.h:84
Foundation SDK singleton class.
Definition: PxFoundation.h:50
PX_C_EXPORT PX_PHYSX_CORE_API void PX_CALL_CONV PxRegisterArticulations(physx::PxPhysics &physics)
Enables the usage of the articulations feature. This function is called automatically inside PxCreate...
A height field class.
Definition: PxHeightField.h:85
PxU8 geometry[sizeof(PxGeometry)]
Definition: PxGeometryHelpers.h:215
a tree structure of bodies connected by joints that is treated as a unit by the dynamics solver ...
Definition: PxArticulationReducedCoordinate.h:144
PxPvd is the top-level class for the PVD framework, and the main customer interface for PVD configura...
Definition: PxPvd.h:114
PX_C_EXPORT PX_PHYSX_CORE_API void PX_CALL_CONV PxRegisterArticulationsReducedCoordinate(physx::PxPhysics &physics)
Enables the usage of the reduced coordinate articulations feature. This function is called automatica...
A plugin class for implementing constraints.
Definition: PxConstraint.h:108
Enable debug renderer for this shape.
Definition: PxShape.h:113
interface to get notification on object deletion
Definition: PxDeletionListener.h:73
Class to define the scale at which simulation runs. Most simulation tolerances are calculated in term...
Definition: PxTolerancesScale.h:56
PX_FORCE_INLINE PxShape * createShape(const PxGeometry &geometry, const PxMaterial &material, bool isExclusive=false, PxShapeFlags shapeFlags=PxShapeFlag::eVISUALIZATION|PxShapeFlag::eSCENE_QUERY_SHAPE|PxShapeFlag::eSIMULATION_SHAPE)
Creates a shape which may be attached to multiple actors.
Definition: PxPhysics.h:377
PX_INLINE physx::PxPhysics * PxCreatePhysics(physx::PxU32 version, physx::PxFoundation &foundation, const physx::PxTolerancesScale &scale, bool trackOutstandingAllocations=false, physx::PxPvd *pvd=NULL)
Creates an instance of the physics SDK.
Definition: PxPhysics.h:692
Material class to represent a set of surface properties.
Definition: PxMaterial.h:130
PX_C_EXPORT PX_PHYSX_CORE_API physx::PxPhysics &PX_CALL_CONV PxGetPhysics()
Retrieves the Physics SDK after it has been created.
PX_C_EXPORT PX_PHYSX_CORE_API physx::PxPhysics *PX_CALL_CONV PxCreateBasePhysics(physx::PxU32 version, physx::PxFoundation &foundation, const physx::PxTolerancesScale &scale, bool trackOutstandingAllocations=false, physx::PxPvd *pvd=NULL)
Creates an instance of the physics SDK with minimal additional components registered.
Definition: PxConstraint.h:88
Container for bitfield flag variables associated with a specific enum type.
Definition: PxFlags.h:73
Abstract singleton factory class used for instancing objects in the Physics SDK.
Definition: PxPhysics.h:71
Callback interface that permits PxCooking to insert a TriangleMesh, HeightfieldMesh or ConvexMesh dir...
Definition: PxPhysicsInsertionCallback.h:60
a tree structure of bodies connected by joints that is treated as a unit by the dynamics solver ...
Definition: PxArticulation.h:76
virtual ~PxPhysics()
Definition: PxPhysics.h:79
Class to aggregate actors into a single broad-phase entry.
Definition: PxAggregate.h:70
uint16_t PxU16
Definition: PxSimpleTypes.h:73
uint32_t PxU32
Definition: Px.h:48
PxRigidStatic represents a static rigid body simulation object in the physics SDK.
Definition: PxRigidStatic.h:59
Class representing the bounding volume hierarchy structure.
Definition: PxBVHStructure.h:57
Base class for objects that can be members of a PxCollection.
Definition: PxBase.h:73
#define PX_INLINE
Definition: PxPreprocessor.h:349
PX_C_EXPORT PX_PHYSX_CORE_API void PX_CALL_CONV PxRegisterHeightFields(physx::PxPhysics &physics)
Enables the usage of the heightfield feature.
This class connects a custom constraint to the SDK.
Definition: PxConstraintDesc.h:352