Hi, I’ve got huge problem with programming my character.
Namely,
I want to rotate my char while get on to my created vihicle.
My code doesen’t work, after (in my project) press Numlock.1 Button, it summons me on right place, but doesn’t rotate towards my vehicle.
I used this:
transform.localEulerAngles = new Vector3(x,y,z);
this:
transform.Rotate(0,45,0,Space.World);
and this:
gameObject.transform.Rotate(new Vector3(0, 0, -1));
And effect is still the same. Summons there where i want, but puts me backs to vehicle.
What i’m doing wrong? Help :<