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

Method Camera

physx/samples/samplebase/SampleCamera.cpp:40–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38// the camera is controlled. For example this should deal with VFC, etc.
39
40Camera::Camera() :
41 mProjMatrix (degtorad(45.0f), 1.0f, 1.0f, 100.0f),
42 mFOV (0.0f),
43 mNearPlane (0.0f),
44 mFarPlane (0.0f),
45 mDirtyProj (true),
46 mDirtyView (true)
47{
48 mViewMatrix = PxTransform(PxIdentity);
49 mPos = PxVec3(0);
50 mRot = PxVec3(0);
51
52 mDrawDebugData = false;
53 mFreezeFrustum = false;
54 mPerformVFC = true;
55}
56
57Camera::~Camera()
58{

Callers

nothing calls this directly

Calls 3

degtoradFunction · 0.85
PxTransformClass · 0.50
PxVec3Class · 0.50

Tested by

no test coverage detected