Skip to content
This repository has been archived by the owner on Jun 29, 2024. It is now read-only.

rotation inconsistencies #74

Closed
funjobie opened this issue Nov 23, 2023 · 2 comments
Closed

rotation inconsistencies #74

funjobie opened this issue Nov 23, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@funjobie
Copy link

funjobie commented Nov 23, 2023

Describe the bug
while the fix in #71 helped quite a bit, i still believe there is some weirdness in how rotations of bodies are handled.
Depending on how my AnimatableBody2D is rotated, i can observe anything from extreme velocity increases to clipping.
The master with #73 in particular is more erratic.

grafik

To Reproduce
Steps to reproduce the behavior:

  1. Open the scene and play
  2. press r to spawn pinballs over the left and right flipper
  3. interact with the marbles using shift or ctrl (shift is now a lower velocity flip, ctrl is higher velocity flip with initial delay)
  4. observe that the right flipper causes extreme velocity increases, sometimes flips by itself, and sometimes the marble clips through it
  5. stop play
  6. very slightly change the rotation of FlipperR in game GameScene.tscn from 142.6 down to 140.
  7. play again
  8. observe that the physics are working perfectly fine

Expected behavior
Consistent physics no matter how bodies are rotated

Project
If applicable, add a reproducible project to help explain your problem.
project_wild_rotations_2023_11_23_1.zip

Versions (please complete the following information):

@funjobie funjobie added the bug Something isn't working label Nov 23, 2023
@Ughuuu
Copy link
Collaborator

Ughuuu commented Nov 24, 2023

Ok hopefully now it should really be fixed. #75

Give it a try after it builds.

@funjobie
Copy link
Author

thanks, yes works great now!

@Ughuuu Ughuuu closed this as completed Nov 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants