Disabling joints with physics API
Posted: Thu Dec 26, 2013 6:53 am
I'm working on a game using the love.physics module, and my player needs to grab onto walls. Currently, I'm doing this by creating a rope joint between the player's hand and the wall. This works fine, but I can't figure out any way for the player to let go! joint:destroy() destroys the joint and the objects it's attached to, which is absolutely not what should happen. What I need is some way to disable, remove, or otherwise nullify the rope joint without destroying the player. Any help is appreciated! Thanks in advance!