Skip to main content

Events

NameInfo
tank_hitPublished when your tank hits a wall, bullet, or another tank
radar_scanPublished when radar comes in contact with a wall, bullet, or another tank
bullet_hitPublished when a bullet fired from your tank collides with a wall, a bullet, or another tank

Here is the Event JSON specification

{
"event_type": "string",
"info": {
"collision_type": "string",
"entity": "integer",
"transform": {
"x": "float",
"y": "float",
"rotation": "float"
},
"velocity": {
"linvel": {
"x": "float",
"y": "float"
},
"angvel": "float"
}
}
}

Collision Types

Bullet
Tank
Wall
Radar