Jump to content

Orienting two points towards each other on a spherical


Steadicam

Recommended Posts

I have two points on a spherical surface.

Each point should only rotate along it s own Y axis (which is simply an axis along the from the center of the sphere to the point itself).

A good analogy example would be two flagpoles standing on a small planet and I want each flag to rotate in the direction of the other flagpole.

Not pointed at the other flag but simply calculate the y rotation of each flagpole to most orient itself in the direction of the other.

I'd also like to stay out of VEX for this.

I did create a clunky solution which utilized a boolean intersection operation based on some geometric shapes I created based on the point position but it was really convoluted and not a very mathmatical solution.

Any thoughts on the simplest approach?

I feel like it should be really simple but for some reason I'm really struggling with this.

Thanks!

 

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...