Fixed over 500 compile warnings. Mostly:
* Unused variables. * Missing newlines at ends of #included files. * signed int loop variables where the termination condition is an unsigned 'get number of' function. * 'NULL' used inappropriately for an integer or character constant (NULL is a pointer) * abstract base classes with no virtual destructor. * Floating point constants used to initialise integer variables.
This commit is contained in:
@@ -58,8 +58,8 @@ SimdTransform fromTrans[maxNumObjects];
|
||||
SimdTransform toTrans[maxNumObjects];
|
||||
|
||||
|
||||
int screenWidth = 640.f;
|
||||
int screenHeight = 480.f;
|
||||
int screenWidth = 640;
|
||||
int screenHeight = 480;
|
||||
|
||||
|
||||
int main(int argc,char** argv)
|
||||
@@ -158,16 +158,9 @@ void ContinuousConvexCollisionDemo::displayCallback(void) {
|
||||
{
|
||||
i=0;//for (i=1;i<numObjects;i++)
|
||||
{
|
||||
SimdScalar dt = 1.f;
|
||||
SimdScalar boundingRadius = shapePtr[i]->GetAngularMotionDisc();
|
||||
SimdScalar angspeed = angVels[i].length() * boundingRadius * dt;
|
||||
SimdScalar linspeed = linVels[i].length() * dt;
|
||||
|
||||
SimdScalar totalspeed = angspeed + linspeed;
|
||||
|
||||
//for each object, subdivide the from/to transform in 10 equal steps
|
||||
|
||||
int numSubSteps = 10.f;
|
||||
int numSubSteps = 10;
|
||||
for (int s=0;s<10;s++)
|
||||
{
|
||||
SimdScalar subStep = s * 1.f/(float)numSubSteps;
|
||||
@@ -188,8 +181,6 @@ void ContinuousConvexCollisionDemo::displayCallback(void) {
|
||||
}
|
||||
|
||||
|
||||
int shapeIndex = 1;
|
||||
|
||||
SimdMatrix3x3 mat;
|
||||
mat.setEulerZYX(yaw,pitch,roll);
|
||||
SimdQuaternion orn;
|
||||
|
||||
Reference in New Issue
Block a user