fix: missing entity.rigidbody methods

This commit is contained in:
MihailRis 2026-03-18 00:00:05 +03:00
parent 48db924c29
commit 86486318f1

View file

@ -34,6 +34,10 @@ local Rigidbody = {__index={
set_body_type=function(self, s) return __rigidbody.set_body_type(self.eid, s) end,
get_material=function(self) return __rigidbody.get_material(self.eid) end,
set_material=function(self, s) return __rigidbody.set_material(self.eid, s) end,
get_mass=function(self) return __rigidbody.get_mass(self.eid) end,
get_elasticity=function(self) return __rigidbody.get_elasticity(self.eid) end,
set_mass=function(self, v) return __rigidbody.set_mass(self.eid, v) end,
set_elasticity=function(self, v) return __rigidbody.set_elasticity(self.eid, v) end,
}}
local function new_Rigidbody(eid)