Plasma Engine  2.0
Loading...
Searching...
No Matches
JoltQueryShapeActorComponent.h
1#pragma once
2
3#include <JoltPlugin/Actors/JoltActorComponent.h>
4
6
7class PL_JOLTPLUGIN_DLL plJoltQueryShapeActorComponentManager : public plComponentManager<class plJoltQueryShapeActorComponent, plBlockStorageType::FreeList>
8{
9public:
12
13private:
14 friend class plJoltWorldModule;
16
17 void UpdateMovingQueryShapes();
18
20};
21
23
31{
33
35 // plComponent
36
37public:
38 virtual void SerializeComponent(plWorldWriter& inout_stream) const override;
39 virtual void DeserializeComponent(plWorldReader& inout_stream) override;
40
41protected:
42 virtual void OnSimulationStarted() override;
43 virtual void OnDeactivated() override;
44
46 // plJoltQueryShapeActorComponent
47public:
50
51 void SetSurfaceFile(const char* szFile); // [ property ]
52 const char* GetSurfaceFile() const; // [ property ]
53
54 plSurfaceResourceHandle m_hSurface; // [ property ]
55
56protected:
57 const plJoltMaterial* GetJoltMaterial() const;
58};
Definition ComponentManager.h:88
Definition DynamicArray.h:81
Base class for all Jolt actors.
Definition JoltActorComponent.h:23
Definition JoltMaterial.h:7
A physics actor that can be moved procedurally (like a kinematic actor) but that doesn't affect rigid...
Definition JoltQueryShapeActorComponent.h:31
Definition JoltQueryShapeActorComponent.h:8
Definition JoltWorldModule.h:29
A world encapsulates a scene graph of game objects and various component managers and their component...
Definition World.h:22
virtual void OnSimulationStarted()
This method is called at the start of the next world update when the world is simulated....
Definition WorldModule.h:105
Reads a world description from a stream. Allows to instantiate that world multiple times in different...
Definition WorldReader.h:47
Stores an entire plWorld in a stream.
Definition WorldWriter.h:13