#Need help

1 messages · Page 1 of 1 (latest)

pure wagon
#

hey got a quick question trying to rotate my "player" using my mouse which I kinda got working but it resets the rotation i want it to stay at when i press play for example I want the X to stay at 90 while i rotate it with my mouse but when i press play it resets my X rotation axis

sorry if im making this sound confusing

#

some pictures this is what I want it to look like

#

this is what it looks like when I start the game

#

and this is my code

worn cosmos
#

Mabee this can work i can’t test it but make a variable offset of type vector3 and add each xy and z coordinate to the quaternion.euler fonction and make an awake or start fonction that take the transform.position and put it on the offset variable .
Let me know if it’s clear

#

And if it’s work

pure wagon
#

"add each xy and z" by this do you mean plug in the coordinate I want it to start at right?

#

did I do this right?

#

Actually figured it out your a genius

worn cosmos
#

Thanks