drwhut / tabletop-club

An open-source platform for playing tabletop games in a physics-based 3D environment for Windows, macOS, and Linux! Made with the Godot Engine.
https://tabletopclub.net
MIT License
1.26k stars 51 forks source link

Cards collide weirdly in mid-air. #194

Closed GrimPixel closed 1 year ago

GrimPixel commented 1 year ago
  1. Load “Poker”
  2. Put the deck in hand
  3. Throw the whole deck forward

Then we can see only some of the cards actually fly forwards.

drwhut commented 1 year ago

This is a known issue with the physics engine in Godot.

I'll label this as a bug, but I can't guarantee this can be fixed any time soon.

drwhut commented 1 year ago

Turns out this wasn't an issue with Godot, upon closer inspection I noticed that the only cards that stopped moving were ones that merged with other cards to form stacks, so the reason some cards stopped moving when thrown forward was because the stacks started out with no velocity. There's still a slight "pause" as the game resolves the collisions and creates the stacks, but all of the cards now fly forwards as expected.