Rotate towards point

I’m having some trouble figuring out how to rotate my object so that it points to specific point, in this case, Vector3.Zero.

I have a globe (sphere) and I’m trying to place pointer markers around it.

7698-diagram.gif

At the marker is placed as per the diagram on the left but I’m trying to make it look like the diagram on the right.

I’ve tried using LookAt, but it rotates the entire marker object.

How can I rotate my object correctly?

You need to find the normal at that point of the sphere and point the added marker along that value. If you are applying it using hit.raycast you can get the value by doing hit.normal.

The docs talk about normals in lots of detail.