mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-14 08:07:17 +07:00
remove physics dummy stuff
This commit is contained in:
@@ -48,9 +48,6 @@
|
||||
"script" : "../scripts/sample_08/ship.lua"
|
||||
},
|
||||
"touchable" : {},
|
||||
"rigid_body" : {
|
||||
"type" : "dynamic"
|
||||
},
|
||||
"circle_collider" : {
|
||||
"offset" : [10,15],
|
||||
"radius" : 33
|
||||
@@ -71,9 +68,6 @@
|
||||
"script" : "../scripts/sample_08/ship.lua"
|
||||
},
|
||||
"touchable" : {},
|
||||
"rigid_body" : {
|
||||
"type" : "dynamic"
|
||||
},
|
||||
"circle_collider" : {
|
||||
"offset" : [10,15],
|
||||
"radius" : 33
|
||||
@@ -95,9 +89,6 @@
|
||||
"script" : "../scripts/sample_08/ship.lua"
|
||||
},
|
||||
"touchable" : {},
|
||||
"rigid_body" : {
|
||||
"type" : "dynamic"
|
||||
},
|
||||
"rect_collider" : {
|
||||
"size" : [66,113]
|
||||
},
|
||||
@@ -120,9 +111,6 @@
|
||||
"actor" : {
|
||||
"translation" : [0,-240]
|
||||
},
|
||||
"rigid_body" : {
|
||||
"type" : "kinematic"
|
||||
},
|
||||
"rect_collider" : {
|
||||
"size" : [320, 50]
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
---@class rigid_body
|
||||
local rigid_body = {
|
||||
---@type boolean
|
||||
enabled = true,
|
||||
|
||||
---@type boolean
|
||||
disabled = false
|
||||
}
|
||||
|
||||
---@overload fun(self: rigid_body)
|
||||
---@param self rigid_body
|
||||
function rigid_body.enable(self) end
|
||||
|
||||
---@overload fun(self: rigid_body)
|
||||
---@param self rigid_body
|
||||
function rigid_body.disable(self) end
|
||||
|
||||
---@type rigid_body
|
||||
_G.rigid_body = _G.rigid_body or rigid_body
|
||||
@@ -39,9 +39,6 @@ local gobject = {
|
||||
---@type renderer
|
||||
renderer = nil,
|
||||
|
||||
---@type rigid_body
|
||||
rigid_body = nil,
|
||||
|
||||
---@type scene
|
||||
scene = nil,
|
||||
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
---@class physics
|
||||
local physics = {
|
||||
}
|
||||
|
||||
---@type physics
|
||||
_G.the_physics = _G.the_physics or physics
|
||||
Reference in New Issue
Block a user