Author Topic: [FEAT] Fixed trigger area repositionings for flipped/rotated/inverted objects  (Read 395 times)

0 Members and 1 Guest are viewing this topic.

Offline WillLem

  • Moderator
  • Posts: 3567
  • Unity isn't sameness, it's togetherness
    • View Profile
Before (Player):



After (Player):



Before (Editor):



After(Editor) - note that multiway resizable objects (i.e. water) are still incorrect - this will be fixed soon:





The repositioning bug seems to have been caused by an ancient bugfix that was later addressed elsewhere in the code, but the original bugfix wasn't updated to match.

Player-side, we'll have to watch out for any existing levels which contain flipped/rotated/inverted objects - OWWs are all fine because they're exact squares, but basically all other objects may now have triggers in a slightly different (but, actually correct!) position as a result of this update. Thankfully, this is being done before there's too much made-for-SLX content. I only have a small handful of levels which are affected by this and it's been very easy to fix them.

Editor-side, the only remaining bug is that resizable objects' triggers are still not resized properly (note the water objects in the above screenshots) - I'll get this fixed ASAP.
« Last Edit: June 07, 2024, 01:04:03 PM by WillLem »

Offline WillLem

  • Moderator
  • Posts: 3567
  • Unity isn't sameness, it's togetherness
    • View Profile
And, rotated resizables are now fixed in the Editor. This was a fairly easy fix in the end, although it took a while to spot exactly what was happening; turns out that the logic simply needed swapping (i.e. adjust width for height and height for width rather than vice versa).

Before:



After:

« Last Edit: June 08, 2024, 07:28:55 PM by WillLem »