MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / getCameraForwardVector

Method getCameraForwardVector

examples/OpenGLWindow/SimpleCamera.cpp:365–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365void SimpleCamera::getCameraForwardVector(float fwd[3]) const
366{
367 if (m_data->m_enableVR)
368 {
369 float viewMatTotal[16];
370 getCameraViewMatrix(viewMatTotal);
371 fwd[0] = viewMatTotal[2];
372 fwd[1] = viewMatTotal[6];
373 fwd[2] = viewMatTotal[10];
374 }
375 else
376 {
377 fwd[0] = float(m_data->m_cameraForward[0]);
378 fwd[1] = float(m_data->m_cameraForward[1]);
379 fwd[2] = float(m_data->m_cameraForward[2]);
380 }
381}
382
383void SimpleCamera::setCameraYaw(float yaw)
384{

Callers 3

renderSceneInternalMethod · 0.80
getCameraInfoMethod · 0.80
getCameraInfoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected