aboutsummaryrefslogtreecommitdiff
path: root/debug/broadphase.lua.X
diff options
context:
space:
mode:
Diffstat (limited to 'debug/broadphase.lua.X')
-rw-r--r--debug/broadphase.lua.X39
1 files changed, 39 insertions, 0 deletions
diff --git a/debug/broadphase.lua.X b/debug/broadphase.lua.X
new file mode 100644
index 0000000..0bb6623
--- /dev/null
+++ b/debug/broadphase.lua.X
@@ -0,0 +1,39 @@
+Pos Lua >> Moon
+136 1:[ local mod = ... ] >> 5:[ mod = ... ]
+146 2:[ local util = require("util") ] >> 6:[ util = require "util" ]
+168 3:[ local bump = require("bump") ] >> 7:[ bump = require "bump" ]
+190 4:[ local main = require("main") ] >> 8:[ main = require "main" --for debugging ]
+244 6:[ Vec3 = util.Vec3 ] >> 9:[ import Vec3 from util ]
+251 7:[ mod.world = bump.newWorld(8) ] >> 11:[ mod.world = bump.newWorld(8) ]
+344 8:[ mod.add = function(ref, x, y, width, height) ] >> 13:[ mod.add = (ref,x,y,width,height) -> ]
+381 9:[ print("Making phys for ref:", ref) ] >> 14:[ print("Making phys for ref:",ref) ]
+578 10:[ local graphic_x = 0 ] >> 18:[ graphic_x = 0--x/4 ]
+598 11:[ local graphic_y = 0 ] >> 19:[ graphic_y = 0--y --+ (height / 2) ]
+666 12:[ local physx = x ] >> 21:[ physx = x ]
+677 13:[ local physy = y ] >> 22:[ physy = y ]
+775 14:[ local lx = x ] >> 25:[ lx = x --+ (width / 2) ]
+799 15:[ local ly = y ] >> 26:[ ly = y --+ (height / 2) ]
+1214 16:[ local positionnode = ref.node ] >> 36:[ positionnode = ref.node ]
+1591 17:[ mod.world:add(ref, physx, physy, width, height) ] >> 41:[ mod.world\add(ref,physx,physy,width,height) ]
+1687 18:[ print("physics node:", node) ] >> 43:[ print("physics node:",node) ]
+1716 19:[ return node ] >> 44:[ node ]
+344 20:[ end ] >> 13:[ mod.add = (ref,x,y,width,height) -> ]
+1722 21:[ mod.update = function(ref, x, y, newwidth, newheight) ] >> 46:[ mod.update = (ref,x,y,newwidth,newheight) -> ]
+1768 22:[ return mod.world:update(ref, x, y, newwidth, newheight) ] >> 47:[ mod.world\update(ref,x,y,newwidth,newheight) ]
+1722 23:[ end ] >> 46:[ mod.update = (ref,x,y,newwidth,newheight) -> ]
+1814 24:[ mod.move = function(ref, x, y, filter) ] >> 49:[ mod.move = (ref,x,y,filter) -> ]
+1846 25:[ return mod.world:move(ref, x, y, filter) ] >> 50:[ mod.world\move(ref,x,y,filter) ]
+1814 26:[ end ] >> 49:[ mod.move = (ref,x,y,filter) -> ]
+1878 27:[ mod.remove = function(ref) ] >> 52:[ mod.remove = (ref) -> ]
+1901 28:[ return mod.world:remove(ref) ] >> 53:[ mod.world\remove(ref) ]
+1878 29:[ end ] >> 52:[ mod.remove = (ref) -> ]
+1924 30:[ mod.check = function(x, y) ] >> 55:[ mod.check = (x,y) -> ]
+1946 31:[ return mod.world:queryPoint(x, y) ] >> 56:[ mod.world\queryPoint(x,y) ]
+1924 32:[ end ] >> 55:[ mod.check = (x,y) -> ]
+2028 43:[ self.offset = offset ] >> 61:[ @offset = offset ]
+2047 44:[ self.size = size ] >> 62:[ @size = size ]
+2062 45:[ self.extra = extra ] >> 63:[ @extra = extra ]
+2078 60:[ mod.gravity = 0.5 ] >> 65:[ mod.gravity = 0.5 ]
+2096 61:[ mod.term_fall_vel = 10 ] >> 66:[ mod.term_fall_vel = 10 ]
+2119 62:[ mod.PhysGroup = PhysGroup ] >> 67:[ mod.PhysGroup = PhysGroup ]
+2145 63:[ return mod ] >> 68:[ mod ]