- Home /
is it possible to have your camerarotation be *-1 of you player rotation.
i am building an online top down tank game. and at first my camera (which has te be a child of the player because of internet reasons) was just moved negatively to the player, but then i added colliders which made it move very weird. so my question is: can you like say. transform.rotation = player.transform.rotation * -1 but then in another way??
Answer by UltraGearGames · May 26, 2019 at 06:49 PM
transform.rotation = -player.transform.rotation;
If this is what you're looking for.
yes but its doesn't work because a quaternion can't be applied in ints or something so i don't know
i found the aswer you have to use Quaternion.Inverse and then you have the good results thanks for your time ;)
Your answer
Follow this Question
Related Questions
Reset player movement axes after camera rotation 1 Answer
How to rotate my camera? 2 Answers
Rotate a camera with mouse drag 0 Answers
Top down camera for object moving on sphere 1 Answer
How to make 90 degree snapping camera, center on object? 0 Answers