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.
PhysX::MeshColliderComponentRequests Class Referenceabstract

Services provided by the PhysX Mesh Collider Component. More...

#include <MeshColliderComponentBus.h>

Inherits AZ::ComponentBus.

Public Member Functions

virtual AZ::Data::Asset< Pipeline::MeshAssetGetMeshAsset () const =0
 
virtual void SetMeshAsset (const AZ::Data::AssetId &id)=0
 

Detailed Description

Services provided by the PhysX Mesh Collider Component.

Member Function Documentation

◆ GetMeshAsset()

virtual AZ::Data::Asset<Pipeline::MeshAsset> PhysX::MeshColliderComponentRequests::GetMeshAsset ( ) const
pure virtual

Gets Mesh information from this entity.

Returns
Asset pointer to mesh asset.

◆ SetMeshAsset()

virtual void PhysX::MeshColliderComponentRequests::SetMeshAsset ( const AZ::Data::AssetId &  id)
pure virtual

Sets the mesh asset ID

Note
Calling this function will not recreate the physics shapes of the collider.
Parameters
idThe asset ID to set it to.

The documentation for this class was generated from the following file: