Is it possible to remove physics.addBody from an object?

Hi!
I have a ball that is affected by gravity. But when it hits a brick I want it to stop and transition with the brick. So far, I’ve solved this by removing the ball and create a new ball, but this solution causes some problems.

Is it possible to remove physics.addBody from an object?

I don’t want to remove physics from every object, just this specific one.

Best regards,
joelwe [import]uid: 54640 topic_id: 10080 reply_id: 310080[/import]

At present no, however you can change the physics properties for that body, if the helps? :slight_smile: [import]uid: 52491 topic_id: 10080 reply_id: 37098[/import]

how if you make that object static (obj.bodyType = “static” for some time with isSensor = true

so no gravity force and no collision hope it will solve ur problem without removing and creating that object again

:slight_smile: [import]uid: 12482 topic_id: 10080 reply_id: 37101[/import]

Thanks guys! It worked! :slight_smile: [import]uid: 54640 topic_id: 10080 reply_id: 37146[/import]