Hi!
I used the Faux Gravity Script to work in planetary Setup…
However I have a gameobject that is always looking at the worlds center. I put another gameobject into it. This child should look in a special direction but must be locked on the local Y axis. Using
transform.LookAt(new Vector3(forwardObject.position.x, transform.localPosition.y, forwardObject.position.z)
makes the child looking at the target and it is looked a the Y axis, but the X and Z axis are looked at the world space. I need them to be looked at the localspace, so that the child is always aligning at its parent. Hope this is understandable.
Do someone have a solution for that?