Question by
alphabowzer · Aug 17, 2021 at 06:46 AM ·
rotationscripting problem2d game
2d Character not rotating right
Hello, I'm new to this and would like some help. I'm just trying to get my character to look in the direction he is going. However, when I add the flip or 180 degree rotation, it looks like he teleports in that direction. I'm assuming it has something to do with local and world rotations or something like that but I don't know enough and haven't found a single fix across the internet for this yet.
Here is my code for the flip:
transform.eulerAngles= new Vector3(0, 180, 0);
Side note: I have a bone structure inside my character. When I do the 180 flip to the core bone(Bone 1), It does flip in place where it's suppose to. But this bone core is in a child class inside of the Parent which is my character.
Thank you for your help!
Comment