summaryrefslogtreecommitdiffhomepage
path: root/not/PhysicalBody.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-07-19 14:50:25 +0200
committerAki <nthirtyone@gmail.com>2017-07-19 14:50:25 +0200
commit657eb912abc89a71d16ea60516458ad6c72f6a4e (patch)
treea7e5a3c23e309aa954f95511cfa6f911536fb7b5 /not/PhysicalBody.lua
parent9b75ea38f0194dfffc89c0144c1ab0efb8b4f392 (diff)
downloadroflnauts-657eb912abc89a71d16ea60516458ad6c72f6a4e.zip
roflnauts-657eb912abc89a71d16ea60516458ad6c72f6a4e.tar.gz
roflnauts-657eb912abc89a71d16ea60516458ad6c72f6a4e.tar.bz2
Initial clash
No additional effect, rusty mechanics for now
Diffstat (limited to 'not/PhysicalBody.lua')
-rw-r--r--not/PhysicalBody.lua1
1 files changed, 1 insertions, 0 deletions
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.