How to move a part of a rigidbody

Hello!

I have a rigidbody consisting of 4 child 3D shapes (rigidbody component attached to their parent). Now I want to rotate one of the children by keyboard (but whole figure should continue to react to collisions with surrounding objects as a single rigidbody). How can I accomplish this?

Thanks in advance!

Hi,

try localRotation, something like

if(Keypressed)
child.localRotation = desiredRotation;

Thanks, it works! The only problem is after changing localRotation whole rigidbody starts shaking :frowning: (like pendulum) I want it to transform without any forces applied!

you need to change your hierarchy
Rigidbody
|
-------Child (just a Transform)
|
------- 3D shapes (localPosition should be 0,0,0)