summaryrefslogtreecommitdiff
path: root/honey/ecs-systems.lua
diff options
context:
space:
mode:
Diffstat (limited to 'honey/ecs-systems.lua')
-rw-r--r--honey/ecs-systems.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/honey/ecs-systems.lua b/honey/ecs-systems.lua
index 969b6fe..418f312 100644
--- a/honey/ecs-systems.lua
+++ b/honey/ecs-systems.lua
@@ -271,6 +271,11 @@ physics = function(params)
:identity()
:translate(Vec3{x,y,z})
:mul(Quaternion{a,b,c,d}:toMat4())
+
+ local vel = physics.velocity
+ vel[1], vel[2], vel[3] = ode.BodyGetLinearVel(physics._body)
+ local avel = physics.angularVelocity
+ avel[1], avel[2], avel[3] = ode.BodyGetAngularVel(physics._body)
end
end
end,