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.27k stars 55 forks source link

Support for offset card stacking. #127

Open hansonry opened 1 year ago

hansonry commented 1 year ago

Is your feature request related to a problem? Please describe. It is hard to keep a stack of cards with an offset in order. For example solitaire. Picking up and dropping results in cards switching position and the cards rotate slightly looking sloppy.

solitaire-card-games-og

Describe the solution you'd like Either some kind of virtual container that would automatically stack cards either vertically or horizontally. Or have some kind of snapping mechanism.

Describe alternatives you've considered Doing it all by hand. It is kind of hard and error prone.

elmodor commented 1 year ago

Would a virtual container be a workaround? I imagine that the issue is probably the card physics? Nevertheless, having one more option to handle different use cases never hurt ...

hansonry commented 1 year ago

@elmodor Not sure actually. There are probably a ton of ways to solve this problem and I am not sure what way would be the best. Maybe the feature already exists, I couldn't find it.

drwhut commented 1 year ago

I could see this being solved using scripting once an API is added down the line. I might also have a play around with this specific example myself and see what can be down to alleviate the annoyances. I'll label this as an enhancement for now, but I'm not sure if this will make it to the 0.1.0 release.