mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
add "triggers" entity property
This commit is contained in:
parent
1f257d2db2
commit
15496070e0
7 changed files with 28 additions and 5 deletions
|
|
@ -36,9 +36,13 @@ return {
|
|||
local entity = setmetatable({eid=eid}, Entity)
|
||||
entity.transform = new_Transform(eid)
|
||||
entity.rigidbody = new_Rigidbody(eid)
|
||||
entity.data = {}
|
||||
entities[eid] = entity;
|
||||
return entity
|
||||
end,
|
||||
get_Entity = function(eid)
|
||||
return entities[eid]
|
||||
end,
|
||||
remove_Entity = function(eid)
|
||||
local entity = entities[eid]
|
||||
if entity then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue