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

Method getCameraUpVector

examples/OpenGLWindow/SimpleCamera.cpp:347–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347void SimpleCamera::getCameraUpVector(float up[3]) const
348{
349 if (m_data->m_enableVR)
350 {
351 float viewMatTotal[16];
352 getCameraViewMatrix(viewMatTotal);
353 up[0] = viewMatTotal[0];
354 up[1] = viewMatTotal[4];
355 up[2] = viewMatTotal[8];
356 }
357 else
358 {
359 up[0] = float(m_data->m_cameraUp[0]);
360 up[1] = float(m_data->m_cameraUp[1]);
361 up[2] = float(m_data->m_cameraUp[2]);
362 }
363}
364
365void SimpleCamera::getCameraForwardVector(float fwd[3]) const
366{

Callers 2

getCameraInfoMethod · 0.80
getCameraInfoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected