Rotate an object around one of his childs in the self space (not the world space)
Hi, I'm Rotating an objet around his Child like that : transform.RotateAround(transform.GetChild(1).position, Vector3.back, oneSpeed Time.deltaTime); But the problem is that the RotateAround function does not have an overload to set the Space to Self (space of the child or the parent, dosn't matter, it's the same) instead of World. I tried with RotateAroundLocal but I'm forced to set the point around which it rotates outside the function, like that : transform.GetChild(1).RotateAroundLocal(Vector3.back, oneSpeed Time.deltaTime, Space.Self); And it only rotates the child, and not the parent. Same tries with the Rotate function, it's the same (RotateAroundLocal is deprecated)
Do you have an idea how I could do that ? I'm a bit fucked, i just realised 2 days before i have to present the work that it rotated in the world space...and have only until thursday to make this work. Any help woul'd be appreciated.