Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void Impala::Application::Videolympics::PhysicsPart::CalcForces (  )  [inline]

Definition at line 38 of file PhysicsEngine.h.

References fX, fY, fZ, Limit(), mView, tfX, tfY, tfZ, tX, tY, and tZ.

Referenced by DoPhysics().

00039     {
00040         float sFactor = 0.005f;
00041 
00042         float aX, aY, aZ;
00043         view3DSys.GetDimensions(mView, &aX, &aY, &aZ, NULL, NULL, NULL);
00044 
00045         tfX = (tX - aX);
00046         tfY = (tY - aY);
00047         tfZ = (tZ - aZ);
00048 
00049         //fX = fX * (1.0f - sFactor) + tfX * sFactor * 0.8;
00050         //fY = fY * (1.0f - sFactor) + tfY * sFactor * 0.8;
00051         //fZ = fZ * (1.0f - sFactor) + tfZ * sFactor * 0.8;
00052         fX = (tX - aX) * 0.05;
00053         fY = (tY - aY) * 0.05;
00054         fZ = (tZ - aZ) * 0.05;
00055 
00056         fX = Limit(fX, 0.2f);
00057         fY = Limit(fY, 0.2f);
00058         fZ = Limit(fZ, 0.2f);
00059     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:16:52 2011 for ImpalaSrc by  doxygen 1.5.1