mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
add standard components test
This commit is contained in:
parent
e0e5faa4a8
commit
c54be7b2b1
6 changed files with 46 additions and 11 deletions
|
|
@ -7,5 +7,6 @@ function on_despawn(eid)
|
|||
end
|
||||
|
||||
function on_grounded(eid)
|
||||
Transform.set_rot(eid, mat4.rotate({0, 1, 0}, math.random()*360))
|
||||
local entity = stdcomp.new_Entity(eid) -- test
|
||||
entity.transform:set_rot(mat4.rotate({0, 1, 0}, math.random()*360))
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue