Physics stuff
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#include "HydraTickActorsSystem.h"
|
||||
#include "../../actor/HydraActorManager.h"
|
||||
#include "../components/HydraTickComponent.h"
|
||||
#include "../HydraECS.h"
|
||||
|
||||
void HydraTickActorsSystem::FixedUpdate(float delta_t_seconds)
|
||||
{
|
||||
HydraActorManager* actor_manager = GetEngine()->ActorManager();
|
||||
HydraECS* ecs = GetEngine()->ECS();
|
||||
|
||||
|
||||
for(HydraID entity_id:Entities)
|
||||
{
|
||||
HydraTickComponent tick_comp = ecs->GetComponent<HydraTickComponent>(entity_id);
|
||||
if(tick_comp.fixed)
|
||||
{
|
||||
actor_manager->FixedTickActor(entity_id, delta_t_seconds);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void HydraTickActorsSystem::UpdateSystem(float delta_t_seconds)
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user