![]() |
ezEngine Release 25.08
|
Most of the shatter calculation (and physics collider generation) is done in this task, to prevent performance drops. More...
#include <JoltBreakableSlabComponent.h>

Public Attributes | |
| ezJoltBreakableSlabComponent * | m_pComponent = nullptr |
| ezHybridArray< JPH::Ref< JPH::ConvexShape >, 128 > | m_Shapes |
| ezMeshResourceHandle | m_hShardsMesh |
| ezHybridArray< ezShatterPoint, 8 > | m_ShatterPoints |
| ezVec3 | m_vFinalImpulse |
Protected Member Functions | |
| virtual void | Execute () override |
| Override this to implement the task's supposed functionality. | |
Protected Member Functions inherited from ezTask | |
| virtual void | ExecuteWithMultiplicity (ezUInt32 uiInvocation) const |
| Override this to implement the task's supposed functionality. | |
Additional Inherited Members | |
Public Member Functions inherited from ezTask | |
| void | ConfigureTask (const char *szTaskName, ezTaskNesting nestingMode, ezOnTaskFinishedCallback callback=ezOnTaskFinishedCallback()) |
| Sets the most important task properties. This has to be done before the task is added to a task group for the first time. | |
| void | SetMultiplicity (ezUInt32 uiMultiplicity) |
| Changes the multiplicity of this task. | |
| ezUInt32 | GetMultiplicity () const |
| bool | IsTaskFinished () const |
| Returns whether the task has been finished. This includes being canceled. | |
| bool | HasBeenCanceled () const |
| Can be used inside an overridden 'Execute' function to terminate execution prematurely. | |
Public Member Functions inherited from ezRefCounted | |
| virtual | ~ezRefCounted ()=default |
| Adds a virtual destructor. | |
Public Member Functions inherited from ezRefCountingImpl | |
| ezRefCountingImpl ()=default | |
| Constructor. | |
| ezRefCountingImpl (const ezRefCountingImpl &rhs) | |
| void | operator= (const ezRefCountingImpl &rhs) |
| ezInt32 | AddRef () const |
| Increments the reference counter. Returns the new reference count. | |
| ezInt32 | ReleaseRef () const |
| Decrements the reference counter. Returns the new reference count. | |
| bool | IsReferenced () const |
| Returns true if the reference count is greater than 0, false otherwise. | |
| ezInt32 | GetRefCount () const |
| Returns the current reference count. | |
Most of the shatter calculation (and physics collider generation) is done in this task, to prevent performance drops.
The result may be ready only with 1-3 frames delay.
|
overrideprotectedvirtual |
Override this to implement the task's supposed functionality.
This function is called for tasks that do not use multiplicity. They are executed a single time for each time they are added to the ezTaskSystem.
Reimplemented from ezTask.