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

Method calculateHorizontalDistance

src/Scene/Camera.cpp:113–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113float Camera::calculateHorizontalDistance() {
114 return distanceFromCar * cos(pitch * (SIMD_PI / 180));
115}
116
117void Camera::followCar(const shared_ptr<Car> &target_car, bool &window_active, ImGuiIO &io){
118 if (!window_active)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected