Steadicam Posted November 14, 2021 Share Posted November 14, 2021 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! Quote Link to comment Share on other sites More sharing options...
Aizatulin Posted November 14, 2021 Share Posted November 14, 2021 Hi, not quite sure what you are trying to do. But if you want to orient a point to another, you can set the up vector as the direction to the other point, where the normal is just the surface normal (direction from center to point). Here is an example (but using VEX) flagpole_orientation.hipnc Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.