Skip to content

weiwenchen2022/lua-aoi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Area of Interest

--[[
create a space object
]]
new(radius)

--[[
update an aoi object.

id : integer
mode : string
  "w" : watcher
  "m" : marker
  "wm" : watcher and marker
  "d" : drop an object
pos_x, pos_y, pos_z : number
]]
space:update(id, mode, pos_x, pos_y, pos_z)

--[[
define a callback function first, and call message in your timer or main loop.
]]
space:message(function(ud, watcher, marker) --[[ body ]] end, ud)

space:close()

See test.lua for example.

About

Area of Interest Library For Lua

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published