chudooder / entanglement

Block puzzler with quantum physics (not really)
Other
1 stars 1 forks source link

Falling block collision #5

Open JDongian opened 10 years ago

JDongian commented 10 years ago

To replicate:

  1. play the level overhang
  2. stand between the blue block and the green toggle block
  3. spam push to push the red and blue blocks off the cliff.

The visual effect is overlapping of blocks. Haven't read code so not sure if visual or engine bug.

JDongian commented 10 years ago

An idea for what you can do: (borrowed from minecraft) When sand blocks fall, they are no longer blocks, but 'entities'.' Entities' have no collision with mobs and operate differently. When they hit the ground, they are replaced by a new block. (note minecraft entities are a separate concept) For you, it looks like all objects are entities. If you replaced them with a FallingEntity or something that just followed gravity until it hit the ground, that would solve the bug perhaps. I think the bug comes from the blocks having some weird interaction mid-air where they don't think they are falling due to the internally stored discrete position used for collision. This is just one way to do it, another way is to make accurate moving-block collision interactions, which would cause the bug to disappear completely.