Hi,
After experimenting with Box2d for quite a while now , i came across a hurdle
well a similar question's been asked many a times but i found no subtle approach. It'd be great if someone could help me with this.
i created a body with b2polygondef , shape definition etc.(setasbox actually) and i could setuserdata to the body , the thing is how do you detect what edge of the box now created is hit by another body.
the way i do this, is by creating another two bodies as sensors around the main body and detecting collision on them.
After experimenting with Box2d for quite a while now , i came across a hurdle
well a similar question's been asked many a times but i found no subtle approach. It'd be great if someone could help me with this.
i created a body with b2polygondef , shape definition etc.(setasbox actually) and i could setuserdata to the body , the thing is how do you detect what edge of the box now created is hit by another body.
the way i do this, is by creating another two bodies as sensors around the main body and detecting collision on them.