That was pretty fun! Short and sweet experience. This is the tallest I managed to get after a few tries, but I also got a piece stuck near the throwing area somehow 😂
Viewing post in Toy Toss Tower jam comments
I’m glad you had fun! So, a bit about how this was implemented:
- If a block is thrown and lands on the hardwood, the block explodes into cats
- Otherwise, the block position/rotation freezes after it collides with something once velocity & angular velocity are close to zero
I think the case you ran into usually happens if you throw a block that hits another block that’s sliding down, and because the sliding block is being pushed in the opposite direction, its velocity becomes zero. Since it freezes upon becoming zero, it doesn’t actually get pushed up and just gets stuck there 😅 honestly thought there were issues with the conditions I set for position lock, but I didn’t think of a better way to deal with it. Maybe should have checked whether a block was in the space over the hardwood after its position locked and explode it then.
You are actually able to throw your block from any position, not just the bottom, and you’re also able to drag the block through other blocks because physics is ignored until after you throw. I think because I was aware of that as a dev, the possibility of a block getting stuck in the throwing area didn’t feel like a big deal to me, but I realize players aren’t going to be aware of that.