mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Updated to Box2D 2.2, added new joints, some other updates to match the API changes (still plenty more to go though)
--HG-- branch : box2d-update
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include "RevoluteJoint.h"
|
||||
#include "PulleyJoint.h"
|
||||
#include "GearJoint.h"
|
||||
#include "FrictionJoint.h"
|
||||
|
||||
namespace love
|
||||
{
|
||||
@@ -200,6 +201,13 @@ namespace box2d
|
||||
**/
|
||||
GearJoint * newGearJoint(Joint * joint1, Joint * joint2, float ratio);
|
||||
|
||||
/**
|
||||
* Creates a new FrictionJoint connecting body1 with body2.
|
||||
* @param x Anchor along the x-axis. (World coordinates)
|
||||
* @param y Anchor along the y-axis. (World coordinates)
|
||||
**/
|
||||
FrictionJoint * newFrictionJoint(Body * body1, Body * body2, float x, float y);
|
||||
|
||||
|
||||
}; // Physics
|
||||
|
||||
|
||||
Reference in New Issue
Block a user