How can I explode a stack of cards and have them bias to land face up?
I currently have a stack of prefab cards that have RigidBodies and BoxColliders. The cards are thin 3D cubes with Quad sides for showing a material. I instantiate them, rotate them so they are flat, and do the next one just slightly above the previous.
When I start running, they stack drops a little and settles on the table like you'd expect. I tried to get the RB of the bottom card and do a large explosion force. I tried iterating bottom up through the cards and adding explosion force. The results end up being that either they move little to none, or they launch into the air straight up. I'd like them to scatter around.
I tried iterating and setting each card's RB to have a velocity of a random direction (mostly up), and then had the Update method call each card's transform.Rotate(rb.velocity * 5f * Time.deltaTime)
. This results in cards that kind of "explode" but mostly don't seem random (usually a large section of cards all stay in the same rotation, but spread out a bit).
How can I naturally make this deck of cards explode up and outward? If possible, how can I encourage the cards to land face up?
Your answer
Follow this Question
Related Questions
OverslapSphere dont detect enemyhealth 0 Answers
how to make bullet explode on impact? 0 Answers
GameObjects getting stuck in walls 0 Answers
How to only make one explosion spawn on impact. 1 Answer
Wanna made the panel network aware 0 Answers