Search found 2 matches

by SobaK
Thu Aug 26, 2010 4:54 am
Forum: Support and Development
Topic: world callbacks problem
Replies: 5
Views: 2412

Re: world callbacks problem

Ok, I'll try=) For example I have 2 shapes, and shape1:isSensor() = true shape2:isSensor() = false Also I set world callbacks like myWorld:setCallbacks(addCallback, nil, nil, nil) In game i have situation when second shape moves through first shape.In this situation addCallback called several times ...
by SobaK
Wed Aug 25, 2010 12:47 pm
Forum: Support and Development
Topic: world callbacks problem
Replies: 5
Views: 2412

world callbacks problem

When one shape is sensor and another shape inside this sensor-shape engine calls "add" callback several times... And it is not good, so i need this callback only once - when two shapes collided. Anyone had same problem? And how I can solve it?