Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
RigidBodySystem.cpp
Go to the documentation of this file.
1
2
4
7
8namespace Divide {
10 : PlatformContextComponent(context),
11 ECSSystem(parentEngine)
12 {
13 }
14
16 {
18
21 if (comp->_rigidBody == nullptr) {
22 comp->_rigidBody.reset(context().pfx().createRigidActor(comp->parentSGN(), *comp));
23 }
24 }
25 }
26
27} //namespace Divide
#define PROFILE_SCOPE_AUTO(CATEGORY)
Definition: Profiler.h:87
vector< RigidBodyComponent * > _componentCache
Definition: ECSSystem.h:92
PlatformContext & context() noexcept
void OnFrameStart() override
RigidBodySystem(ECS::ECSEngine &parentEngine, PlatformContext &context)
constexpr Optick::Category::Type Scene
Definition: Profiler.h:66
Handle console commands that start with a forward slash.
Definition: AIProcessor.cpp:7