mirror of
https://github.com/love2d/love.git
synced 2026-08-20 04:30:09 +02:00
fixed a typo in the comments of three love.physics functions (I'm being very useful)
This commit is contained in:
@@ -16,13 +16,13 @@
|
|||||||
* 2. Altered source versions must be plainly marked as such, and must not be
|
* 2. Altered source versions must be plainly marked as such, and must not be
|
||||||
* misrepresented as being the original software.
|
* misrepresented as being the original software.
|
||||||
* 3. This notice may not be removed or altered from any source distribution.
|
* 3. This notice may not be removed or altered from any source distribution.
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#ifndef LOVE_PHYSICS_BOX2D_PHYSICS_H
|
#ifndef LOVE_PHYSICS_BOX2D_PHYSICS_H
|
||||||
#define LOVE_PHYSICS_BOX2D_PHYSICS_H
|
#define LOVE_PHYSICS_BOX2D_PHYSICS_H
|
||||||
|
|
||||||
// LOVE
|
// LOVE
|
||||||
#include <common/Module.h>
|
#include <common/Module.h>
|
||||||
#include "World.h"
|
#include "World.h"
|
||||||
#include "Contact.h"
|
#include "Contact.h"
|
||||||
#include "Body.h"
|
#include "Body.h"
|
||||||
@@ -34,22 +34,22 @@
|
|||||||
#include "DistanceJoint.h"
|
#include "DistanceJoint.h"
|
||||||
#include "PrismaticJoint.h"
|
#include "PrismaticJoint.h"
|
||||||
#include "RevoluteJoint.h"
|
#include "RevoluteJoint.h"
|
||||||
#include "PulleyJoint.h"
|
#include "PulleyJoint.h"
|
||||||
#include "GearJoint.h"
|
#include "GearJoint.h"
|
||||||
|
|
||||||
namespace love
|
namespace love
|
||||||
{
|
{
|
||||||
namespace physics
|
namespace physics
|
||||||
{
|
{
|
||||||
namespace box2d
|
namespace box2d
|
||||||
{
|
{
|
||||||
class Physics : public Module
|
class Physics : public Module
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Implements Module.
|
// Implements Module.
|
||||||
const char * getName() const;
|
const char * getName() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new World.
|
* Creates a new World.
|
||||||
* @param lx Lower bound on the x-axis.
|
* @param lx Lower bound on the x-axis.
|
||||||
@@ -110,7 +110,7 @@ namespace box2d
|
|||||||
CircleShape * newCircleShape(Body * body, float x, float y, float radius);
|
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.
|
* will be created at the local origin.
|
||||||
* @param w The width of the rectangle.
|
* @param w The width of the rectangle.
|
||||||
* @param h The height of the rectangle.
|
* @param h The height of the rectangle.
|
||||||
@@ -118,7 +118,7 @@ namespace box2d
|
|||||||
PolygonShape * newRectangleShape(Body * body, float w, float h);
|
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.
|
* will be created at (x,y) in local coordinates.
|
||||||
* @param x The offset along the x-axis.
|
* @param x The offset along the x-axis.
|
||||||
* @param y The offset along the y-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);
|
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.
|
* will be created at (x,y) in local coordinates.
|
||||||
* @param x The offset along the x-axis.
|
* @param x The offset along the x-axis.
|
||||||
* @param y The offset along the y-axis.
|
* @param y The offset along the y-axis.
|
||||||
@@ -194,12 +194,12 @@ namespace box2d
|
|||||||
* @param ratio The gear ratio.
|
* @param ratio The gear ratio.
|
||||||
**/
|
**/
|
||||||
GearJoint * newGearJoint(Joint * joint1, Joint * joint2, float ratio);
|
GearJoint * newGearJoint(Joint * joint1, Joint * joint2, float ratio);
|
||||||
|
|
||||||
|
|
||||||
}; // Physics
|
}; // Physics
|
||||||
|
|
||||||
} // box2d
|
} // box2d
|
||||||
} // physics
|
} // physics
|
||||||
} // love
|
} // love
|
||||||
|
|
||||||
#endif // LOVE_PHYSICS_BOX2D_PHYSICS_H
|
#endif // LOVE_PHYSICS_BOX2D_PHYSICS_H
|
||||||
|
|||||||
Reference in New Issue
Block a user