[v2] Create slick.world.frame
method to update entire world.
#14
Labels
enhancement
New feature or request
slick.world.frame
method to update entire world.
#14
slick.world.frame
method that takes adeltaTime
. All entities will be simulated, given their velocity and the elapsed time, to prevent any potentially tunneling caused by one-by-one updates. Currently,update
, etc treat all other entities besides the one being updated as being stationary.slick.entity
:slick.world.frame
to see what objects interact with this one. They can returnvisit
functions as well like the current collision filter functions.startContact
,stopContact
,move
and potentially others toslick.entity
. A function provided to this event will be called when the entity starts or stops touching another entity or shape, for example.To keep it generic, all methods that take a function can take a table with a
__call
metamethod. And to keep it simple, only one function can be registered at a time to an event, collision filter, collision response handler, or other things that use functions provided externally. More advanced behavior will require use of pub-sub libraries or such!The text was updated successfully, but these errors were encountered: