Open 3D Engine PhysX Gem API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
#include <SystemComponentBus.h>
Inherits AZ::EBusTraits.
Public Types | |
using | MutexType = AZStd::recursive_mutex |
Public Member Functions | |
virtual physx::PxConvexMesh * | CreateConvexMesh (const void *vertices, AZ::u32 vertexNum, AZ::u32 vertexStride)=0 |
virtual physx::PxConvexMesh * | CreateConvexMeshFromCooked (const void *cookedMeshData, AZ::u32 bufferSize)=0 |
virtual physx::PxTriangleMesh * | CreateTriangleMeshFromCooked (const void *cookedMeshData, AZ::u32 bufferSize)=0 |
virtual physx::PxHeightField * | CreateHeightField (const physx::PxHeightFieldSample *samples, size_t numColumns, size_t numRows)=0 |
virtual physx::PxFilterData | CreateFilterData (const AzPhysics::CollisionLayer &layer, const AzPhysics::CollisionGroup &group)=0 |
virtual physx::PxCooking * | GetCooking ()=0 |
Static Public Attributes | |
static const AZ::EBusHandlerPolicy | HandlerPolicy = AZ::EBusHandlerPolicy::Single |
static const AZ::EBusAddressPolicy | AddressPolicy = AZ::EBusAddressPolicy::Single |
Requests for the PhysX system component. The system component owns fundamental PhysX objects which manage worlds, rigid bodies, shapes, materials, constraints etc., and perform cooking (processing assets such as meshes and heightfields ready for use in PhysX).
|
pure virtual |
Creates a new convex mesh.
vertices | Pointer to beginning of vertex data. |
vertexNum | Number of vertices in mesh. |
vertexStride | Size of each entry in the vertex data. |
|
pure virtual |
Creates a new convex mesh from pre-cooked convex mesh data.
cookedMeshData | Pointer to the cooked convex mesh data. |
bufferSize | Size of the cookedMeshData buffer in bytes. |
|
pure virtual |
Creates PhysX collision filter data from generic collision filtering settings.
layer | The collision layer the object belongs to. |
group | The set of collision layers the object will interact with. |
|
pure virtual |
Creates a new heightfield.
samples | Pointer to beginning of heightfield sample data. |
numColumns | Number of columns in the heightfield. |
numRows | Number of rows in the heightfield. |
|
pure virtual |
Creates a new triangle mesh from pre-cooked mesh data.
cookedMeshData | Pointer to the cooked mesh data. |
bufferSize | Size of the cookedMeshData buffer in bytes. |
|
pure virtual |
Gets the cooking object. It is possible to update the current cooking params with setParams on PxCooking, this way the default cooking params can be overridden if required. References: https://docs.nvidia.com/gameworks/content/gameworkslibrary/physx/guide/Manual/Geometry.html#triangle-meshes, https://docs.nvidia.com/gameworks/content/gameworkslibrary/physx/guide/Manual/Startup.html#cooking