MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / getRotY

Method getRotY

src/Physics/Car.cpp:472–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470}
471
472float Car::getRotY() {
473 glm::quat orientation = car_body_model.orientation;
474 return glm::degrees(atan2(2*orientation.y*orientation.w - 2*orientation.x*orientation.z, 1 - 2*orientation.y*orientation.y - 2*orientation.z*orientation.z));
475}
476
477void Car::simulate() {
478 std::vector<double> raycastInputs;

Callers 2

followCarMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected