Quantcast
Viewing all articles
Browse latest Browse all 116

Interpolating along an arc.

I am trying to move an object between two points along an arc with respect to another point. I have a starting point A, an end point B and third point C. I want to make my object move from A to B along an curved path where the convex side of the path is facing away from point C. I tried using Vector3.Slerp as shown in the documentation and I can get the curved path, but sometimes the path is flipped and the object goes through C. My code is very similar to this [example][1]. How can I get the path to always be go away from C? [1]: https://docs.unity3d.com/Documentation/ScriptReference/Vector3.Slerp.html

Viewing all articles
Browse latest Browse all 116

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>