- Add PushOutSolid behavior to interact with solid object, this behavior is extracted from 8-direction behavior.
- Update moveTo behavior to re-calculate velocity when position changed by event/other behavior (for example, PushOutSolid behavior).
Here is a demo for moveTo with solid object.
- click any point to move to.
Note: PushOutSolid behavior must put under other behavior.
Here it is~