I managed to get the object Out when picked up. And I'm able to put it again on the world. But the program crashes on some weird ways.
I was checking the possibility of using Collision Flags, in order to get the Ghost ignoring collisions with the wall till the proper time, but I really don't get how could I do it.
i have this flags
ball->Envelope->Body->setCollisionFlags(ball->Envelope->Body->getCollisionFlags() | COLLISIONFLAGS::BALL);
if i do this, the ball loses interaction with the world, and stops falling by gravity.
How should I do this? I get the contact event and I have the moments in which I'd like the character to ignore collisions with the Ball, and the one in which I'd like to get them back.
Thanks in advance.