Added 2-point version of love.physics.newRevoluteJoint (fixes #1175)

This commit is contained in:
airstruck
2016-07-07 21:18:35 +02:00
parent 24da8433d0
commit 9a2f99dc3d
6 changed files with 29 additions and 12 deletions
+5 -3
View File
@@ -171,11 +171,13 @@ public:
/**
* Creates a new RevoluteJoint connecting body1 with body2.
* @param x Anchor along the x-axis. (World coordinates)
* @param y Anchor along the y-axis. (World coordinates)
* @param xA Anchor for body 1 along the x-axis. (World coordinates)
* @param yA Anchor for body 1 along the y-axis. (World coordinates)
* @param xB Anchor for body 2 along the x-axis. (World coordinates)
* @param yB Anchor for body 2 along the y-axis. (World coordinates)
* @param collideConnected Whether the connected bodies should collide with each other. Defaults to false.
**/
RevoluteJoint *newRevoluteJoint(Body *body1, Body *body2, float x, float y, bool collideConnected);
RevoluteJoint *newRevoluteJoint(Body *body1, Body *body2, float xA, float yA, float xB, float yB, bool collideConnected);
/**
* Creates a new PrismaticJoint connecting body1 with body2.