I'm currently working on adding pins to a curved map of the US, but I'm facing some challenges. Right now, I'm using mathematical calculations to determine their distance from the highest part of the curve and adjust their height accordingly. However, due to variations in elevation across different states, some pins are not aligning correctly - leaving some hovering in mid-air and others buried too deep.
My goal is to have all the pins start at a certain height and then move downward until they make contact with the map surface. Unfortunately, my search for reliable information or solutions on implementing collision detection in THREE.js has been unsuccessful so far.
Is there a better approach I could take? How can I ensure that these pins accurately rest on the curved map's surface?