Rotating a 2D overlap box based on another object's rotation.
I'd like to know, how I can rotate a 2D overlap box so that it has the same rotation as another GameObject(It is a parent. The overlap box doesn't seem to rotate with the parent object.).
Answer by CobbledGames · Aug 13, 2019 at 12:04 PM
Nevermind I found a solution myself which involved using transform.localEulerAngles on the parent and then storing it's z axis value in a variable.
Your answer
Follow this Question
Related Questions
C# 2D Top down game how to detect if objects are touching while they can pass through each other? 1 Answer
Trying to move UI Elements but they are not working 1 Answer
I want to make a bot which simulate the maze solver using left hand rule ( wall follower). 0 Answers
Error when adding an item to a list 0 Answers
position the player on the same position as an object 0 Answers