Hello there,
I'm using Box2d just for collision detection and not physics. I'm doing:
to check for collisions(all without a world).
But now I need some debug draw, can I have it without having a world ?
Another question is, can I use this method for bullets ? Since "isBullet" property is for bodies only.
Thanks for your time
Parsa
I'm using Box2d just for collision detection and not physics. I'm doing:
Code:
b2Manifold manifold;
b2PolygonShape A,B;
//... store the width.height with setBox for the shape region
b2Transform transA, transB;
//... store the position location and angle of shape A and B into transform with Set.
b2CollidePolygons(&manifold, A, transA, B, transB);
if(manifold.m_pointCount > 0){
NSLog(@"collided");
}
b2PolygonShape A,B;
//... store the width.height with setBox for the shape region
b2Transform transA, transB;
//... store the position location and angle of shape A and B into transform with Set.
b2CollidePolygons(&manifold, A, transA, B, transB);
if(manifold.m_pointCount > 0){
NSLog(@"collided");
}
to check for collisions(all without a world).
But now I need some debug draw, can I have it without having a world ?
Another question is, can I use this method for bullets ? Since "isBullet" property is for bodies only.
Thanks for your time
Parsa