jelster / space-truckers

A game of getting stuff from Point A to Point B... IN SPAAAACCE!

Home Page:https://space-truckers.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generating the route

jelster opened this issue · comments

getting route data

Route data is obtained by sampling the CargoUnit's position at intervals while the isInFlight flag is set. Data captured in each sample includes:

  • Vector3 world position
  • Vector3 linear velocity
  • Quaternion world rotation
  • timestamp (?)
  • Encounter data (if applicable - see #65 )

It is interesting to note that the combination of the world position vector and rotation quaternion would populate a translation+rotation matrix quite nicely...