physics based collision detection not working?
Posted: Thu Nov 22, 2012 2:45 am
Hi,
my physics objects (all "dynamic" bodies+shapes+fixtures) don't collide according to the visuals and world:getContactCount(). Although applyForce() works fine. Since the tutorial works fine and I checked both codes several times I guess it is a either a stupid error or something non-obvious for noobs
just did a few more tests, actually now very rarely a collision occurs, which is just more confusing...
I thought it was a "representation problem" (objects displayed at wrong locations) at first, but I tried to draw them only with the physics data (see code in SpaceObject:draw()) and the collisions didn't happen either.
.love attached
thx in advance
gladius
my physics objects (all "dynamic" bodies+shapes+fixtures) don't collide according to the visuals and world:getContactCount(). Although applyForce() works fine. Since the tutorial works fine and I checked both codes several times I guess it is a either a stupid error or something non-obvious for noobs
just did a few more tests, actually now very rarely a collision occurs, which is just more confusing...
I thought it was a "representation problem" (objects displayed at wrong locations) at first, but I tried to draw them only with the physics data (see code in SpaceObject:draw()) and the collisions didn't happen either.
.love attached
thx in advance
gladius