Navigation

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

    setCamera remembers position

    Bug Reporting (FUZE 4 Nintendo Switch)
    3
    4
    206
    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.
    • PB____
      PB____ last edited by

      If you do not use setCamera in a 3D game, the camera will have the position and target that it was last set by by a different game.

      It's debatable if this really is a bug, but it smells like one, as I don't expect anything to leak between runs.

      1 Reply Last reply Reply Quote 4
      • spt games
        spt games last edited by

        This has just tripped me up when I commented out setCamera and ran again and the camera was not at 0,0,0 but the same place as before.

        I've made a note to always setCamera in a 3D program to reset it and avoid this issue.

        1 Reply Last reply Reply Quote 1
        • Martin
          Martin Fuze Team last edited by

          I suspect this is probably how the bug got missed or introduced in the first place - people just inherently using setCamera and not really occurring that people might not.

          1 Reply Last reply Reply Quote 1
          • PB____
            PB____ last edited by

            That's exactly why I wrote "It's debatable if this really is a bug". Since it's fair to say that people should just use setCamera.

            In general I think it's nicer to always have the same starting state for a game, to prevent weird states that are hard to reproduce because steps are involved that might not even be related to the same project.

            It appears that there are more instances in FUZE, especially when it comes to error handling, where you don't always get a clean slate per run. But those cases are harder to reproduce. So although the setCamera behavior might not be related on a technical level (but I don't know that), I was also hoping to make the point about expectation in a broader sense as well :)

            1 Reply Last reply Reply Quote 1
            • First post
              Last post