Fixes in modules
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "physics.h"
|
||||
#include "loader.h"
|
||||
#include "EventModule.h"
|
||||
#include "TerrainModule.h"
|
||||
#include "PhysicsModule.h"
|
||||
namespace ECS
|
||||
{
|
||||
@@ -58,6 +59,8 @@ PhysicsModule::PhysicsModule(flecs::world &ecs)
|
||||
ecs.component<CharacterVelocity>();
|
||||
ecs.component<WaterBody>().add(flecs::Singleton);
|
||||
ecs.component<CachedMass>();
|
||||
ecs.import <TerrainModule>();
|
||||
ecs.import <WaterModule>();
|
||||
ecs.system<const EngineData, const Camera>("physics_init")
|
||||
.kind(PhysicsPreUpdate)
|
||||
.without<Physics>()
|
||||
|
||||
Reference in New Issue
Block a user