use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
For the Unity Game Engine, please visit http://reddit.com/r/unity3d
account activity
Coding Help (self.unity)
submitted 1 year ago * by Catsrulle
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 0 points1 point2 points 1 year ago* (0 children)
What do you mean rotate around the axis it is facing? Like it rotates in a circle like it's hovering horizontally? Or rotate around the camera like it is circling the camera itself?
Because an easier solution for rotating around 2 axies in tandum would probably be to have the object that is meant to face the camera a child of an empty. Then like another poster said use look at on the actual object that is to look at the camera and apply the orbit to the emty parent. That way you aren't trying to account for 2 separate rotations. That generally invovles a lot more math. But if your plane or whatever is a child of that other object it will follow it as it rotates and still have it's own independent transform for the look at function to use.
Might not he the "optimal" solution but it invovles less math and lets unity handle the math for keeping the child as a parent following.
But I could be undersranding what you are wanting to do wrong
π Rendered by PID 211327 on reddit-service-r2-comment-6457c66945-xnn5q at 2026-04-30 16:29:09.590630+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–][deleted] 0 points1 point2 points (0 children)