Facepunch / sbox-issues

176 stars 12 forks source link

[Animgraph] Aim Matrix increments incorrectly. #3249

Closed badandbest closed 5 months ago

badandbest commented 1 year ago

Describe the bug

The Aim Matrix is a 3x4 matrix, S&box divides the poses to fit within -45° and 45°.

I have recreated how the Aim Matrix divides these poses. image

The most glaring issues are that:

To Reproduce

  1. Set up an Aim Matrix node. image
  2. Aim 45° up.

It will now play the Straight Up pose, instead of the Up Center pose.

Expected behavior

Aim Matrix is a 3x4 matrix. Straight Up should require a second increment like this 2DBlend example, taken from Team Fortress 2. image

Media/Files

No response

Additional context

This is a S&box specific issue. In Half Life: Alyx it works as you'd expect.

badandbest commented 1 year ago

Please it's been over 100 days

badandbest commented 11 months ago

Please it's been over 200 days

garrynewman commented 11 months ago

Can you explain this to me like I'm a 5 year old please. Is this in animgraph?

badandbest commented 11 months ago

Yes! Sorry, should have specified that more clearly.

Something about the node's math is wrong.

https://github.com/sboxgame/issues/assets/91832803/9535dc7f-733a-40a1-b9ee-8b84a62a97ce

animgraph file.zip

I should also make it clear that this is not a problem with the citizen animations.

badandbest commented 6 months ago

1 year anniversary 🎉

A lot of the systems in s&box are being remade for scenes. Will the animgraph get the same treatment? And if so, would it even be worth keeping this issue up?

aylaylay commented 5 months ago

This should be working correctly now, for both 3x4 and 3x5 (Can look straight down is 3x5) @badandbest

badandbest commented 5 months ago

Holy shit it works

https://github.com/Facepunch/sbox-issues/assets/91832803/8c6a75ce-e5e0-4494-b26f-ae8a53a4c371