MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / getViewDir

Method getViewDir

deps/physx/physx/samples/samplebase/SampleCamera.cpp:93–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93PxVec3 Camera::getViewDir() const
94{
95 const PxTransform& camPose = getViewMatrix();
96 PxVec3 forward = PxMat33(camPose.q)[2];
97 return -forward;
98}
99
100void Camera::lookAt(const PxVec3& position, const PxVec3& target)
101{

Callers 12

updateMethod · 0.80
onDigitalInputEventMethod · 0.80
throwBallMethod · 0.80
updateMethod · 0.80
onPointerInputEventMethod · 0.80
updateFollowingModeMethod · 0.80
onTickPreRenderMethod · 0.80
handleInputMethod · 0.80
onRenderMethod · 0.80
spawnDebugObjectMethod · 0.80
updateMethod · 0.80
onPointerInputEventMethod · 0.80

Calls 1

PxMat33Class · 0.50

Tested by

no test coverage detected