From 657eb912abc89a71d16ea60516458ad6c72f6a4e Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 19 Jul 2017 14:50:25 +0200 Subject: Initial clash No additional effect, rusty mechanics for now --- not/PhysicalBody.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'not/PhysicalBody.lua') diff --git a/not/PhysicalBody.lua b/not/PhysicalBody.lua index fd92f89..804c706 100644 --- a/not/PhysicalBody.lua +++ b/not/PhysicalBody.lua @@ -11,6 +11,7 @@ PhysicalBody.body =--[[love.physics.newBody]]nil function PhysicalBody:new (x, y, world, imagePath) PhysicalBody.__super.new(self, world, imagePath) self.body = love.physics.newBody(world.world, x, y) + self.body:setUserData(self) end -- Add new fixture to body. -- cgit v1.1