- Home /
Sword moving towards player with "LookAt(Player)" but not in right sword's angle.
I have the game object summoning a sword behind him and when the sword as finished its summoning animation it launches towards the Player, the problem is when it launches instead of the sharp edge facing toward the Player the back of the sword is facing the player. How do I keep the LookAt(player) but changes its rotation without effecting the sword's movement towards the player?
Comment
Answer by DenisIsDenis · Nov 13, 2021 at 02:40 PM
How about:
sword.transform.localScale = new Vector3 (1, 1, -1);
This will flip the sword along the Z axis.
Your answer
![](https://koobas.hobune.stream/wayback/20220613045100im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
An alternative to RotateAround for collisions 0 Answers
How do I get GameObjects to look at me? 2 Answers
Look at with degree angle for camera follow 0 Answers
rotate on the Y axis 1 Answer