mirror of
https://github.com/love2d/love.git
synced 2026-08-18 19:54:22 +02:00
Implement Fixture class properly.
--HG-- branch : box2d-update
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "World.h"
|
||||
#include "Contact.h"
|
||||
#include "Body.h"
|
||||
#include "Fixture.h"
|
||||
#include "Shape.h"
|
||||
#include "CircleShape.h"
|
||||
#include "PolygonShape.h"
|
||||
@@ -98,6 +99,13 @@ namespace box2d
|
||||
* @param world The world to create the Body in.
|
||||
**/
|
||||
Body * newBody(World * world);
|
||||
|
||||
/**
|
||||
* Creates a new Fixture.
|
||||
* @param body The body to attach the Fixture to.
|
||||
* @param shape The shape to attach to the Fixture.
|
||||
**/
|
||||
Fixture * newFixture(Body * body, Shape * shape);
|
||||
|
||||
/**
|
||||
* Creates a new CircleShape at (0, 0).
|
||||
|
||||
Reference in New Issue
Block a user