how can i move a rigitbody relative to its parent

i want to move a rigitbody relative to ther parent(that also has a rigitbody)?
i want to move it around but if the parent is moving that it moves with it

If something is child of something, it will get all the transformations the paernt has, if you want to move them separetly, you should breack the hierachy of both. Also to move soemthing with rigidbody around something or relative soemthing, there is a parameter called Space, where you can change to world or self. Also to move around something you can use the Torqe force to rotate it and change its center of Mass to the parent, or have a object in between the hierarchy and set give it the rigidbody and the script to it.

But if you dont need forcess, then dont use rigidbodyes, it is better to rotate the father instead

they move separetly if they if rigitbodys
and i want that i can move the child but if the player moves that it moves with it