Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Orienting multiple objects on the same line

$
0
0
Hello, I am trying to create a mini golf game. I am having a bit of trouble figuring out an issue. When the golf ball is at rest and has stopped moving, I would like the golf club to re-orient itself a short ways behind the ball. However, I would like it to be positioned in such a way that it is auto-aiming for the player, facing the hole. So, imagine if a line is placed from the center of the hole to the center of the ball, the golf club would be on that same line, just a bit behind the ball and facing the ball. I have looked into using Vector3.Angle and several other methods, but I am still a bit lost. Any help would be appreciated. Thanks a lot! -Andrew

Viewing all articles
Browse latest Browse all 171066

Trending Articles



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