add math to make use of entity.angle and entity.speed