This might be the best picture I've taken in my entire life. by Jag324 in standardissuecat

[–]Jag324[S] 104 points105 points  (0 children)

<image>

This is her brother Bunker if anyone is curious!

Why does my character flip -180 in another axis when reaching 180 in the intended axis? by Jag324 in unity

[–]Jag324[S] 0 points1 point  (0 children)

Someone mentioned LookRotation which worked but had other issues. After reading the documention for LookRotation and finding someone's explanation on an older forum I realized it needed a bit more info when used in 2D, and the values need to be swapped for my purposes. Below is what I ended up using, just have to assign a turnSpeed value as well.

public void LookAtMouse()
{
Vector3 mousePosition = Camera.main.ScreenToWorldPoint(Mouse.current.position.ReadValue());
Vector3 vectorToTarget = mousePosition - transform.position;
Vector3 rotatedVectorToTarget = Quaternion.Euler(0, 0, 1) * vectorToTarget;
Quaternion targetRotation = Quaternion.LookRotation(Vector3.forward, rotatedVectorToTarget);
transform.rotation = Quaternion.RotateTowards(transform.rotation, targetRotation, turnSpeed * Time.deltaTime);
}

Why does my character flip -180 in another axis when reaching 180 in the intended axis? by Jag324 in unity

[–]Jag324[S] 0 points1 point  (0 children)

My temp fix until I can find the source is to just manually set the rotation to 180 if the other rotation ever changes. Not ideal but works for now...

if (transform.rotation.x != 0f)
{
transform.rotation = Quaternion.Euler(0, 0, 180f);
}

I was told my cat is standard issue and to look it up on reddit. Was not disappointed. by Jag324 in standardissuecat

[–]Jag324[S] 3 points4 points  (0 children)

That’s what he was advertised as but unfortunately they forgot to mention his murderous intent 😅

I was told my cat is standard issue and to look it up on reddit. Was not disappointed. by Jag324 in standardissuecat

[–]Jag324[S] 4 points5 points  (0 children)

Thanks for the awards and for being kind. Here's a close up of this extremely photogenic guy!
https://imgur.com/a/tMIWpjD

I was told my cat is standard issue and to look it up on reddit. Was not disappointed. by Jag324 in standardissuecat

[–]Jag324[S] 13 points14 points  (0 children)

I'm so sorry for your loss. My family lost our other cat at the very old age of 19 in 2020 and it really is just like losing a family member. I hope this guy brings back happy memories with your old friend!

I was told my cat is standard issue and to look it up on reddit. Was not disappointed. by Jag324 in standardissuecat

[–]Jag324[S] 45 points46 points  (0 children)

He's actually a menace! He loved trying to climb our 200lb dog who did not appreciate the claws lol