From e5553bb81c93cd76456d07d3a1d7e8bb1b249b6e Mon Sep 17 00:00:00 2001 From: sanine-a Date: Thu, 23 Mar 2023 13:35:37 -0500 Subject: implement skeleton of physics system --- honey/ecs-systems.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'honey/ecs-systems.lua') diff --git a/honey/ecs-systems.lua b/honey/ecs-systems.lua index a511b3d..237aa78 100644 --- a/honey/ecs-systems.lua +++ b/honey/ecs-systems.lua @@ -28,11 +28,11 @@ end -- update transforms transformCascade = { filter=ecs.Filter.AND{"transform", "parent"}, - preUpdate=function(entity) + prepareEntity=function(self, entity) entity._transform = nil entity._transformComputed = false end, - update=function(entity, dt) + update=function(self, entity, dt) recursiveComputeTransform(entity) end, priority=98, @@ -45,7 +45,7 @@ function renderCam(camera, priority) local priority = priority or 99 return { filter=ecs.Filter.AND{"mesh", "shader", "transform"}, - update=function(entity, dt) + update=function(self, entity, dt) entity.shader:use() entity.shader:configure{ matrix={ @@ -64,7 +64,7 @@ end update = { filter=ecs.Filter.AND{"update"}, - update=function(entity, dt) + update=function(self, entity, dt) entity.update(entity, dt) end, priority=50, -- cgit v1.2.1