3#include <Core/ResourceManager/Resource.h>
4#include <Foundation/Math/BoundingBoxSphere.h>
5#include <JoltPlugin/JoltPluginDLL.h>
17 class ConvexHullShape;
46 bool HasTriangleMesh()
const {
return m_pTriangleMeshInstance !=
nullptr || !m_TriangleMeshData.IsEmpty(); }
52 plUInt32
GetNumConvexParts()
const {
return !m_ConvexMeshInstances.IsEmpty() ? m_ConvexMeshInstances.GetCount() : m_ConvexMeshesData.GetCount(); }
55 JPH::Shape* InstantiateConvexPart(plUInt32 uiPartIdx, plUInt64 uiUserData,
const plJoltMaterial* pMaterial,
float fDensity)
const;
60 plUInt32 GetNumTriangles()
const {
return m_uiNumTriangles; }
61 plUInt32 GetNumVertices()
const {
return m_uiNumVertices; }
66 virtual void UpdateMemoryUsage(MemoryUsage& out_NewMemoryUsage)
override;
73 mutable JPH::Shape* m_pTriangleMeshInstance =
nullptr;
76 plUInt32 m_uiNumVertices = 0;
77 plUInt32 m_uiNumTriangles = 0;
Definition DynamicArray.h:81
A hybrid array uses in-place storage to handle the first few elements without any allocation....
Definition HybridArray.h:12
Definition JoltMaterial.h:7
Definition JoltMeshResource.h:27
bool HasTriangleMesh() const
Returns whether the mesh resource contains a triangle mesh. Triangle meshes and convex meshes are mut...
Definition JoltMeshResource.h:46
const plBoundingBoxSphere & GetBounds() const
Returns the bounds of the collision mesh.
Definition JoltMeshResource.h:37
plUInt32 GetNumConvexParts() const
Returns the number of convex meshes. Triangle meshes and convex meshes are mutually exclusive.
Definition JoltMeshResource.h:52
const plDynamicArray< plSurfaceResourceHandle > & GetSurfaces() const
Returns the array of default surfaces to be used with this mesh.
Definition JoltMeshResource.h:43
The base class for all resources.
Definition Resource.h:10
Interface for binary in (read) streams.
Definition Stream.h:22
Definition JoltMeshResource.h:22
Describes in which loading state a resource currently is, and how many different quality levels there...
Definition Declarations.h:102