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:
@@ -137,7 +137,7 @@ void UserCollisionAlgorithm::initPhysics()
|
||||
|
||||
|
||||
|
||||
ConstraintSolver* solver = new SequentialImpulseConstraintSolver;
|
||||
//ConstraintSolver* solver = new SequentialImpulseConstraintSolver;
|
||||
|
||||
CollisionDispatcher* dispatcher = new CollisionDispatcher();
|
||||
|
||||
@@ -163,7 +163,7 @@ void UserCollisionAlgorithm::initPhysics()
|
||||
{
|
||||
CollisionShape* sphereShape = new SphereShape(1);
|
||||
startTransform.setOrigin(SimdVector3(1,2*i,1));
|
||||
CcdPhysicsController* boxRigidBody = LocalCreatePhysicsObject(true, 1, startTransform,sphereShape);
|
||||
LocalCreatePhysicsObject(true, 1, startTransform,sphereShape);
|
||||
}
|
||||
}
|
||||
m_physicsEnvironmentPtr->setGravity(-1,-10,1);
|
||||
|
||||
@@ -32,4 +32,5 @@ class UserCollisionAlgorithm : public DemoApplication
|
||||
|
||||
};
|
||||
|
||||
#endif //USER_COLLISION_ALGORITHM_DEMO_H
|
||||
#endif //USER_COLLISION_ALGORITHM_DEMO_H
|
||||
|
||||
|
||||
Reference in New Issue
Block a user