Search found 6 matches

by MattF
Fri Aug 09, 2013 12:32 pm
Forum: Box2D tutorial discussion
Topic: Clearing the world
Replies: 2
Views: 10925

Re: Clearing the world

That worked, thanks;)
by MattF
Thu Aug 08, 2013 12:26 pm
Forum: Box2D tutorial discussion
Topic: Clearing the world
Replies: 2
Views: 10925

Clearing the world

Heya. I have a little problem with clearing the world from all the bodies. During my game, when enemies die, they are removed after some time, similar to "removing bodies safely". It works just fine. But when i switch the level i want to clear all the bodies from the world, delete old leve...
by MattF
Tue Jan 15, 2013 2:07 pm
Forum: Box2D tutorial discussion
Topic: Directional sensors
Replies: 7
Views: 16854

Re: Directional sensors

Thanks again for the suggestions:) Using sets seems way better in this scenario, so i'll replace my vectors with those later. For now i fixed my problem by performing all checks for both sensors and the doing final cast in one helper function. Also i switched checking method from polling object type...
by MattF
Wed Jan 09, 2013 10:48 pm
Forum: Box2D tutorial discussion
Topic: Directional sensors
Replies: 7
Views: 16854

Re: Directional sensors

Hi again, got one more question, regarding a problem, that came up after the previous fix. It seems now, when both sensors are active things are acting strange, and i get reading and writing violations. If i disable checking the sensor on one side in Contact Listener the other works perfectly. So en...
by MattF
Tue Jan 08, 2013 12:10 pm
Forum: Box2D tutorial discussion
Topic: Directional sensors
Replies: 7
Views: 16854

Re: Directional sensors

Just as i thought, something quite stupid like this:)

Thanks a lot!
by MattF
Mon Jan 07, 2013 2:07 pm
Forum: Box2D tutorial discussion
Topic: Directional sensors
Replies: 7
Views: 16854

Directional sensors

Heya. First of all, thanks for great tutorials, they've been very helpful. Following those i started creating a test for player character class, which would consist of main fixture, and 3 sensors for now: 1 for ground checking, and 2 sensors to the left and to the right. The idea is, to gather all e...