issues rotating an arbitrary point around another arbitrary point


I have written the following methods to rotate an arbitrary point around another arbitrary point. When I rotate the point using the code below, it doesn't rotate to the desired angle over the specified duration. It moves immediately by the wrong angle. How can I solve this?



Please note that the points are independent of a game object.



I can really help you with quartonians much, but I can offer some advice about movement over time. I hard lesson I had to learn was to avoid using Co-routines wherever possible. While they seem pretty slick, they are a bit confusing to get right and the was Unity uses them isn't exactly how you are supposed to use them in other areas of C#.



Wherever possible, I just use a unity class that updates each frame. Its much simpler to understand and to debug. The drawback in your case is that you need a new component for each point you are trying to rotate, but that shouldn't be a big deal.



{



}



Try something like that and see if your problem goes away. Otherwise, you may have to research quartonians a little more, or just do the trigonometry manually since you are in a 2D plane.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

The Dalles, Oregon

眉山市

清晰法令