Search found 6 matches
- Fri Aug 09, 2013 12:32 pm
- Forum: Box2D tutorial discussion
- Topic: Clearing the world
- Replies: 2
- Views: 16058
Re: Clearing the world
That worked, thanks;)
- Thu Aug 08, 2013 12:26 pm
- Forum: Box2D tutorial discussion
- Topic: Clearing the world
- Replies: 2
- Views: 16058
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...
- Tue Jan 15, 2013 2:07 pm
- Forum: Box2D tutorial discussion
- Topic: Directional sensors
- Replies: 7
- Views: 29073
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...
- Wed Jan 09, 2013 10:48 pm
- Forum: Box2D tutorial discussion
- Topic: Directional sensors
- Replies: 7
- Views: 29073
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...
- Tue Jan 08, 2013 12:10 pm
- Forum: Box2D tutorial discussion
- Topic: Directional sensors
- Replies: 7
- Views: 29073
Re: Directional sensors
Just as i thought, something quite stupid like this:)
Thanks a lot!
Thanks a lot!
- Mon Jan 07, 2013 2:07 pm
- Forum: Box2D tutorial discussion
- Topic: Directional sensors
- Replies: 7
- Views: 29073
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...