[
    {
        "chan": "gps:agents",
        "events": [
            {
                "eventName": "move",
                "mappings": [
                    {
                        "id": "aid",
                        "assign": {
                            "position.x": "coords.x",
                            "position.z": "coords.y",
                            "position.y": "coords.z"
                        },
                        "tween": true,
                        "tweenDelay": 1000
                    }
                ]
            }
        ]
    },
    {
        "chan": "agent:*",
        "events": [
            {
                "eventName": "age",
                "mappings": [
                    {
                        "id": "aid",
                        "assign": {
                            "fill": {
                                "arguments": ["age"],
                                "transformer": "rgb(${Math.round(255 * age / 10)},0,${Math.round(255 * (1 - age / 10))})"                                
                            }
                        }
                    }
                ]
            },
            {
                "eventName": "rotate",
                "mappings": [
                    {
                        "id": "aid",
                        "assign": {
                            "rotation.x": "facing.x",
                            "rotation.y": "facing.y",
                            "rotation.z": "facing.z"
                        },
                        "tween": true,
                        "tweenDelay": 500
                    }
                ]
            }
        ]
    }
]
