getVehicleAxisWorld method

void getVehicleAxisWorld(
  1. AxisIndex axisIndex,
  2. Vec3 result
)

Get one of the wheel axles, world-oriented.

Implementation

void getVehicleAxisWorld(AxisIndex axisIndex, Vec3 result){
  result.set(axisIndex == AxisIndex.x ? 1 : 0, AxisIndex.y == axisIndex ? 1 : 0, axisIndex == AxisIndex.z ? 1 :0);
  chassisBody.vectorToWorldFrame(result, result);
}