Neural state machine for character-scene interactions | Synapse