epervier-old/examples/scenes/gameplay/moveplayer3D/actors/parent.lua

15 lines
336 B
Lua
Raw Normal View History

2020-04-05 18:18:13 +02:00
local Base = require "birb.modules.world.actors.actor3D"
local Parent = Base:extend()
function Parent:new(world, type, x, y, z, w, h, d, isSolid)
self.scene = world.scene
Parent.super.new(self, world, type, x, y, z, w, h, d, isSolid)
end
function Parent:draw()
Parent.super.draw(self)
self:drawMainHitbox()
end
return Parent