Hello guys,
I want to unparent a gameobject (In my case bump_front) from my car and would add a rigidbody-component. I want to write it in java language please help.
All in one, if my car-bumper collides with a gameobject it will fall of.
You might be best having a rigidbody on the bumper from the start, with one on your car as well. If you do this then do not have one as a child of the other(this would give odd unwanted behaviour). Once both are setup like this then you fix them together with a joint, you can then set this joint to break at a certain force impact at which point your bumper will fall off. Look at this :