Guide 1 Docs 2 Reference 3

Function of EntitySpec

entitySpec.on_tick

Runs after the physics each tick to react to where it ended up; call base(e) to extend.

entitySpec.on_tick((e: EntityHandle, base: () -> ()) -> ()) → ?

Parameters

(eEntityHandle, base: () -> ()) -> ()required

Returns

?