Add basic EdgeShape (todo: all edge-related functionality) and further integrated the new Joints

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-09-04 13:21:57 -04:00
parent 551cf591e2
commit 7ec64bf912
13 changed files with 384 additions and 156 deletions
+19 -22
View File
@@ -18,13 +18,13 @@
* 3. This notice may not be removed or altered from any source distribution.
**/
#ifndef LOVE_PHYSICS_BOX2D_WRAP_PRISMATIC_JOINT_H
#define LOVE_PHYSICS_BOX2D_WRAP_PRISMATIC_JOINT_H
#ifndef LOVE_PHYSICS_BOX2D_WRAP_WHEEL_JOINT_H
#define LOVE_PHYSICS_BOX2D_WRAP_WHEEL_JOINT_H
// LOVE
#include <common/runtime.h>
#include "wrap_Joint.h"
#include "PrismaticJoint.h"
#include "WheelJoint.h"
namespace love
{
@@ -32,27 +32,24 @@ namespace physics
{
namespace box2d
{
PrismaticJoint * luax_checkprismaticjoint(lua_State * L, int idx);
int w_PrismaticJoint_getJointTranslation(lua_State * L);
int w_PrismaticJoint_getJointSpeed(lua_State * L);
int w_PrismaticJoint_enableMotor(lua_State * L);
int w_PrismaticJoint_isMotorEnabled(lua_State * L);
int w_PrismaticJoint_setMaxMotorForce(lua_State * L);
int w_PrismaticJoint_setMotorSpeed(lua_State * L);
int w_PrismaticJoint_getMotorSpeed(lua_State * L);
int w_PrismaticJoint_getMotorForce(lua_State * L);
int w_PrismaticJoint_enableLimit(lua_State * L);
int w_PrismaticJoint_isLimitEnabled(lua_State * L);
int w_PrismaticJoint_setUpperLimit(lua_State * L);
int w_PrismaticJoint_setLowerLimit(lua_State * L);
int w_PrismaticJoint_setLimits(lua_State * L);
int w_PrismaticJoint_getLowerLimit(lua_State * L);
int w_PrismaticJoint_getUpperLimit(lua_State * L);
int w_PrismaticJoint_getLimits(lua_State * L);
int luaopen_prismaticjoint(lua_State * L);
WheelJoint * luax_checkwheeljoint(lua_State * L, int idx);
int w_WheelJoint_getJointTranslation(lua_State * L);
int w_WheelJoint_getJointSpeed(lua_State * L);
int w_WheelJoint_enableMotor(lua_State * L);
int w_WheelJoint_isMotorEnabled(lua_State * L);
int w_WheelJoint_setMotorSpeed(lua_State * L);
int w_WheelJoint_getMotorSpeed(lua_State * L);
int w_WheelJoint_setMaxMotorTorque(lua_State * L);
int w_WheelJoint_getMaxMotorTorque(lua_State * L);
int w_WheelJoint_getMotorTorque(lua_State * L);
int w_WheelJoint_setSpringFrequencyHz(lua_State * L);
int w_WheelJoint_getSpringFrequencyHz(lua_State * L);
int w_WheelJoint_setSpringDampingRatio(lua_State * L);
int w_WheelJoint_getSpringDampingRatio(lua_State * L);
int luaopen_wheeljoint(lua_State * L);
} // box2d
} // physics
} // love
#endif // LOVE_PHYSICS_BOX2D_WRAP_PRISMATIC_JOINT_H
#endif // LOVE_PHYSICS_BOX2D_WRAP_WHEEL_JOINT_H