So I just deployed an update with a new type of of behavior block: RayCast
. This is something that has been needed for a long time.
Ray Cast will send out and invisible ray from your object, and outputs either a hit
depending on whether it strikes another object. This allows an object to check the space around it. Among other things, it can be used to:
* Easily check if the object is on the ground, to prevent double jumping
* Check the space in front of an NPC, so that they don't walk off a cliff
* Checking line-of-sight for enemies
* Anything that requires checking the objects around you, like collision checking for grid-based collision detection
Documentation was added to the behavior handbook, and an example with an NPC cliff check, and double-jump prevention is here: http://flowlab.io/game/view/842398
Let me know if you have any issues or questions!