Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    setSpriteCollisionShape ignores rotation if using an offset!

    Bug Reporting (FUZE 4 Nintendo Switch)
    2
    3
    201
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • vinicity
      vinicity F last edited by vinicity

      If you set a collision shape using five parameters like this, rotation works as expected:

      setSpriteCollisionShape(sprite, shape, width, height, rotation)
      

      However, calling the function like this, with the two offset parameters causes Fuze to ignore the rotation:

      setSpriteCollisionShape(sprite, shape, width, height, rotation, xOffset, yOffset)
      

      I made a small program that illustrates the problem:

      ID: NHCZ7MND5C

      https://i.imgur.com/4q1BPWz.jpg

      1 Reply Last reply Reply Quote 3
      • Willpowered
        Willpowered Fuze Team last edited by

        Thanks for the report! A fix is in the works.

        1 Reply Last reply Reply Quote 3
        • Willpowered
          Willpowered Fuze Team last edited by

          As a temporary workaround, try this:

          setSpriteCollisionShape(sprite, shape, width, height, rotation)
          sprite.collision_offset_x = x_offset
          sprite.collision_offset_y = y_offset
          
          1 Reply Last reply Reply Quote 2
          • First post
            Last post