mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix: missing entity.rigidbody methods
This commit is contained in:
parent
48db924c29
commit
86486318f1
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue