-
-
Notifications
You must be signed in to change notification settings - Fork 909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scale up gravity BodyComponent overlap #3320
Comments
flame version
|
If you set the zoom to 1 and gravity to that high you will run into the classic box2d max speed and things will not behave like you'd expect them too. |
@spydon Ths reply.
If set zoom to default 10 and gravity to 10 there have another issue: |
Because of the issue I linked above, you hit the max velocity limit. When you zoom in and make everything smaller the velocity limit will go up * zoom level. The real solution to this issue is: So I'll close this one, since it's already covered by that one. |
|
@taosimple can you send a screenshot with |
@taosimple |
What happened?
ContactCallbacksExample() : super(gravity: Vector2(0, 100.0), zoom: 1, world: ContactCallbackWorld());
Set gravity to 100 and zoom to 1, BodyComponent ball will overlap.
What do you expect?
Ball should not overlap
How can we reproduce this?
Just modify the flame examples contact_callbacks_example code.
contact_callbacks_example.dart
What steps should take to fix this?
No response
Do have an example of where the bug occurs?
No response
Relevant log output
No response
Execute in a terminal and put output into the code block below
[✓] Flutter (Channel stable, 3.24.1, on macOS 14.6.1 23G93 darwin-arm64 (Rosetta), locale en-US)
• Flutter version 3.24.1 on channel stable at /Users/taotao/Documents/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 5874a72aa4 (5 weeks ago), 2024-08-20 16:46:00 -0500
• Engine revision c9b9d5780d
• Dart version 3.5.1
• DevTools version 2.37.2
• Pub download mirror https://pub.flutter-io.com
• Flutter download mirror https://storage.flutter-io.com
[✓] Connected device (4 available)
• RMX3366 (mobile) • 8620aab3 • android-arm64 • Android 14 (API 34)
• sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64 • Android 14 (API 34) (emulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 14.6.1 23G93 darwin-arm64 (Rosetta)
• Chrome (web) • chrome • web-javascript • Google Chrome 128.0.6613.138
Affected platforms
Android
Other information
Test on android device and emulator
Are you interested in working on a PR for this?
The text was updated successfully, but these errors were encountered: