Bucksterman
Member
Hi all.
I'm trying to restore an object to normal behaviour after removing a physics fixture from it but I'm unable to do so. It's for a track editor that I'm working on - The desired behaviour is that a track wall object follows the mouse until it is placed (working correctly) and then after it is placed it has a physics fixture bound to it so that cars will collide with it (which is also working correctly) but if I want to then 'pick the object up' and move it again I can't get it to follow the mouse even after removing the bound physics fixture from it.
It's like the object is still physics enabled despite me unbinding the fixture. Happy to supply code to help here - Is there something that I'm missing? Is there a way that I'm unaware of to 'completely un-physics' an object and restore it to normal behaviour where x and y properties can be adjusted normally. Thanks in advance for any help anyone can give me here!
I'm trying to restore an object to normal behaviour after removing a physics fixture from it but I'm unable to do so. It's for a track editor that I'm working on - The desired behaviour is that a track wall object follows the mouse until it is placed (working correctly) and then after it is placed it has a physics fixture bound to it so that cars will collide with it (which is also working correctly) but if I want to then 'pick the object up' and move it again I can't get it to follow the mouse even after removing the bound physics fixture from it.
It's like the object is still physics enabled despite me unbinding the fixture. Happy to supply code to help here - Is there something that I'm missing? Is there a way that I'm unaware of to 'completely un-physics' an object and restore it to normal behaviour where x and y properties can be adjusted normally. Thanks in advance for any help anyone can give me here!