shroom icon indicating copy to clipboard operation
shroom copied to clipboard

Lay direction

Open DamienJolly opened this issue 5 years ago • 4 comments

Laying down on beds currently only works on one direction.

https://i.gyazo.com/475a7035e27702db860312ff61c13e8b.png https://i.gyazo.com/f606d5379882c42f880c32b58aaa0637.png

DamienJolly avatar Jan 27 '21 05:01 DamienJolly

@DamienJolly Could you provide a minimal reproducible example? Perhaps in the form of a gist containing a storyboard.

welsipieters avatar Feb 05 '21 12:02 welsipieters

@DamienJolly Valid Directions for the Avatar Lay action appear to be 2 and 4. Those are working for me. What direction are you trying?

jankuss avatar Feb 12 '21 19:02 jankuss

Just checked and 2 and 4 are valid lay rotations but for beds their valid rotations are 2 and 0. I've coded a work around so if the players is laying on a bed with a rotation of 0 it sets it to 4 but this can't be the intended way.

DamienJolly avatar Feb 13 '21 17:02 DamienJolly

Ah okay I see. For avatar directions, 0 is basically the mirrored version of 4. So maybe we should just add some logic for that?

  • 0 becomes 4 internally
  • 6 becomes 2 internally

jankuss avatar Feb 18 '21 23:02 jankuss