- Home /
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
Answer by hectorux · Jun 25, 2018 at 04:13 AM
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
Answer by $$anonymous$$ · Jun 25, 2018 at 07:51 AM
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
Your answer
Follow this Question
Related Questions
How to Add Knockback Force Based on What Rotation it Came From 2 Answers
Player movement not working with unity 5 1 Answer
2D Game, Character Slides off Slopes, Need to be Able to Walk on Them 1 Answer
Why is my vertical movement faster than my horizontal? 1 Answer
How to instantiate an object and have it rise from/through the ground? 1 Answer