Rotating object perpendicular to sphere surface

Hi folks,

I’m trying to place an object on many points on the surface of a sphere, where they all point outwards from the center of the sphere (so it looks like an undersea mine). Right now the objects are rotating around the normal vectors, but the rotation math isn’t quite right. I’m using the RhinoPolyhedra plugin to evenly distribute the points. What am I doing wrong?

Thanks!



place around sphere.gh (19.3 KB)

I don’t have RhinoPolyhedra installed, but you can replace this Mesh Parameter with that component and I think you’ll be fine:

place around sphere_inno.gh (12.9 KB)

Or even like that.