![]() ![]() ![]() Here’s the solved formula: //-point arrow to enemy Sensible goddammit!) meaning that the axis is different – my gameObjects rotate on the y-axis, but I wanted the arrow to rotate on its z-axis.Īnyway, despite spending a lot of time in Unity Answers, and posting the question twice but slightly differently worded (I was getting desperate) it was a Facebook comment where I got a good link to a solution. Possibly because I was adding my arrow to the UI layer (and I’m not changing that because it’s sensible. However every answer I found seemed to be lacking something, and wouldn’t work for me. Luckily Unity’s community is large and this question has been asked many times. Knowing that my grasp of maths is worse than the average gym instructor, I trawled the internet for help. Or maybe it’d be easy if I was better at mathematics. I’ve seen this in so many games that I assumed it would be dead easy to add. ![]() I thought that the best solution for this would be to add an arrow pointing in the direction of the enemy, to follow. The biggest criticism of my recent game (other than it being a shit game about shit) was that it was difficult to find the enemy turd in level 1. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |