|
@@ -16,13 +16,13 @@
|
|
|
* 2. Altered source versions must be plainly marked as such, and must not be
|
|
|
* misrepresented as being the original software.
|
|
|
* 3. This notice may not be removed or altered from any source distribution.
|
|
|
-**/
|
|
|
-
|
|
|
-#ifndef LOVE_PHYSICS_BOX2D_PHYSICS_H
|
|
|
-#define LOVE_PHYSICS_BOX2D_PHYSICS_H
|
|
|
-
|
|
|
-// LOVE
|
|
|
-#include <common/Module.h>
|
|
|
+**/
|
|
|
+
|
|
|
+#ifndef LOVE_PHYSICS_BOX2D_PHYSICS_H
|
|
|
+#define LOVE_PHYSICS_BOX2D_PHYSICS_H
|
|
|
+
|
|
|
+// LOVE
|
|
|
+#include <common/Module.h>
|
|
|
#include "World.h"
|
|
|
#include "Contact.h"
|
|
|
#include "Body.h"
|
|
@@ -34,22 +34,22 @@
|
|
|
#include "DistanceJoint.h"
|
|
|
#include "PrismaticJoint.h"
|
|
|
#include "RevoluteJoint.h"
|
|
|
-#include "PulleyJoint.h"
|
|
|
+#include "PulleyJoint.h"
|
|
|
#include "GearJoint.h"
|
|
|
-
|
|
|
-namespace love
|
|
|
-{
|
|
|
-namespace physics
|
|
|
-{
|
|
|
-namespace box2d
|
|
|
-{
|
|
|
- class Physics : public Module
|
|
|
- {
|
|
|
- public:
|
|
|
-
|
|
|
- // Implements Module.
|
|
|
- const char * getName() const;
|
|
|
-
|
|
|
+
|
|
|
+namespace love
|
|
|
+{
|
|
|
+namespace physics
|
|
|
+{
|
|
|
+namespace box2d
|
|
|
+{
|
|
|
+ class Physics : public Module
|
|
|
+ {
|
|
|
+ public:
|
|
|
+
|
|
|
+ // Implements Module.
|
|
|
+ const char * getName() const;
|
|
|
+
|
|
|
/**
|
|
|
* Creates a new World.
|
|
|
* @param lx Lower bound on the x-axis.
|
|
@@ -110,7 +110,7 @@ namespace box2d
|
|
|
CircleShape * newCircleShape(Body * body, float x, float y, float radius);
|
|
|
|
|
|
/**
|
|
|
- * Shorthand for creating rectangluar PolygonShapes. The rectangle
|
|
|
+ * Shorthand for creating rectangular PolygonShapes. The rectangle
|
|
|
* will be created at the local origin.
|
|
|
* @param w The width of the rectangle.
|
|
|
* @param h The height of the rectangle.
|
|
@@ -118,7 +118,7 @@ namespace box2d
|
|
|
PolygonShape * newRectangleShape(Body * body, float w, float h);
|
|
|
|
|
|
/**
|
|
|
- * Shorthand for creating rectangluar PolygonShapes. The rectangle
|
|
|
+ * Shorthand for creating rectangular PolygonShapes. The rectangle
|
|
|
* will be created at (x,y) in local coordinates.
|
|
|
* @param x The offset along the x-axis.
|
|
|
* @param y The offset along the y-axis.
|
|
@@ -128,7 +128,7 @@ namespace box2d
|
|
|
PolygonShape * newRectangleShape(Body * body, float x, float y, float w, float h);
|
|
|
|
|
|
/**
|
|
|
- * Shorthand for creating rectangluar PolygonShapes. The rectangle
|
|
|
+ * Shorthand for creating rectangular PolygonShapes. The rectangle
|
|
|
* will be created at (x,y) in local coordinates.
|
|
|
* @param x The offset along the x-axis.
|
|
|
* @param y The offset along the y-axis.
|
|
@@ -194,12 +194,12 @@ namespace box2d
|
|
|
* @param ratio The gear ratio.
|
|
|
**/
|
|
|
GearJoint * newGearJoint(Joint * joint1, Joint * joint2, float ratio);
|
|
|
-
|
|
|
-
|
|
|
- }; // Physics
|
|
|
-
|
|
|
-} // box2d
|
|
|
-} // physics
|
|
|
-} // love
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+ }; // Physics
|
|
|
+
|
|
|
+} // box2d
|
|
|
+} // physics
|
|
|
+} // love
|
|
|
+
|
|
|
#endif // LOVE_PHYSICS_BOX2D_PHYSICS_H
|