Open Tam opened 1 month ago
Oops, that was a bug. I fixed it in pull request #623
Should we release a 0.15.2 patch to include this?
And forward is the negative direction of the Z-axis in Bevy, so it should be 'W' = vec3(0.0, 0.0, -1.0)
Thanks, @Shute052!
Just tried out the main branch and it works 👍
IMO we're close to a 0.16 launch for the new Bevy version: let's do that instead.
Version
0.15.1
Operating system & version
MacOS 15
What you did
Add a triple axis to an
InputMap
What you expected to happen
Values recieved from
clamped_axis_triple
should correctly map keys to floats. E.g:'A' = vec3(-1.0, 0.0, 0.0)
'E' = vec3(0.0, 1.0, 0.0)
'W' = vec3(0.0, 0.0, 1.0)
What actually happened
The
Y
axis is mapped correctly, but theX
is mapped to bothX
andZ
and theZ
inputs are ignored entirely. So:'A' = vec3(-1.0, 0.0, -1.0)
'E' = vec3(0.0, 1.0, 0.0)
'W' = vec3(0.0, 0.0, 0.0)