The collisions seems to be offsetted when having a collision in different coordinate systems.
Convert all positions to global ones to have the same coordinate system.
Create a collider inside camera.viewport and one in world
Maybe use localToGlobal or something like this on all colliders
https://dartpad.dev/?id=931319d09967e36386690e817afb0baa
click on run and then you see that it collides if the cursor is on the top left corner.
No errors reported
[β] Flutter (Channel stable, 3.24.0, on Fedora Linux 40 (KDE Plasma) 6.10.4-200.fc40.x86_64, locale de_DE.UTF-8)
β’ Flutter version 3.24.0 on channel stable at /home/codedoctor/Tools/flutter
β’ Upstream repository https://github.com/flutter/flutter.git
β’ Framework revision 80c2e84975 (3 weeks ago), 2024-07-30 23:06:49 +0700
β’ Engine revision b8800d88be
β’ Dart version 3.5.0
β’ DevTools version 2.37.2
[β] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
β’ Android SDK at /home/codedoctor/Android/Sdk
β’ Platform android-34, build-tools 34.0.0
β’ Java binary at: /home/codedoctor/.local/share/JetBrains/Toolbox/apps/android-studio/jbr/bin/java
β’ Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
β’ All Android licenses accepted.
[β] Chrome - develop for the web
β’ CHROME_EXECUTABLE = /usr/bin/chromium-browser
[β] Linux toolchain - develop for Linux desktop
β’ clang version 18.1.6 (Fedora 18.1.6-3.fc40)
β’ cmake version 3.28.2
β’ ninja version 1.12.1
β’ pkg-config version 2.1.1
[β] Android Studio (version 2024.1)
β’ Android Studio at /home/codedoctor/.local/share/JetBrains/Toolbox/apps/android-studio
β’ Flutter plugin can be installed from:
π¨ https://plugins.jetbrains.com/plugin/9212-flutter
β’ Dart plugin can be installed from:
π¨ https://plugins.jetbrains.com/plugin/6351-dart
β’ Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
[β] IntelliJ IDEA Ultimate Edition (version 2024.2)
β’ IntelliJ at /home/codedoctor/.local/share/JetBrains/Toolbox/apps/intellij-idea-ultimate
β’ Flutter plugin version 80.0.2
β’ Dart plugin can be installed from:
π¨ https://plugins.jetbrains.com/plugin/6351-dart
[β] VS Code (version 1.92.2)
β’ VS Code at /usr/share/code
β’ Flutter extension version 3.94.0
[β] Connected device (2 available)
β’ Linux (desktop) β’ linux β’ linux-x64 β’ Fedora Linux 40 (KDE Plasma) 6.10.4-200.fc40.x86_64
β’ Chrome (web) β’ chrome β’ web-javascript β’ Chromium 127.0.6533.99 Fedora Project
[β] Network resources
β’ All expected network resources are available.
β’ No issues found!
All
Also reported on discord: https://discord.com/channels/509714518008528896/1274083884451102762.
I would like to help with this but I have 0 idea how this all works. I'm currently using a workaround by moving the collider in the world space if it isn't interacting with camera viewport elements
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too