Skip to content

Engine API #2

@reddyalready

Description

@reddyalready

Had a discussion with @aurbano this morning. To prepare for our meeting on Sunday, I thought we should start writing some stuff down :)

Data Structures

Sensors

SensorArray: List<Sensor>

Sensor: 
{
  velocity: int,
  position: {
    x: int   // Only simulating sensors along one line for now
  },
  distance: float   // 0.00 <> 1.00, indicating distance to detected object
  // 1 = no object, 0 = collision
}

Car State

CarState:
{
  throttle: float // -1.00 <> 1.00, where -1 = brake, +1 = full throttle
  steering: float // -1.00 <> 1.00, where -1 = full left steering, +1 = full right steering
}

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions