MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / updateInternals

Method updateInternals

physx/samples/samplebase/SampleCamera.cpp:77–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void Camera::updateInternals()
78{
79 if(mDirtyProj)
80 {
81 mDirtyProj = false;
82 mProjMatrix = RendererProjection(degtorad(mFOV), mViewport.computeRatio(), mNearPlane, mFarPlane);
83 }
84 if(mDirtyView)
85 {
86 mDirtyView = false;
87
88 mViewMatrix.q = PxQuat(EulerToMat33(mRot));
89 mViewMatrix.p = mPos;
90 }
91}
92
93PxVec3 Camera::getViewDir() const
94{

Callers 1

CameraClass · 0.80

Calls 5

degtoradFunction · 0.85
computeRatioMethod · 0.80
EulerToMat33Function · 0.70
RendererProjectionClass · 0.50
PxQuatClass · 0.50

Tested by

no test coverage detected