Closed ghost closed 4 years ago
@maccxs You're right, I've added the comments. I also realized that just disabling physics simulation for the dead is quite a dirty fix, so I've made it a little more thorough.
Thanks, this is most helpful!
This looks ready to be merged (after the other branch has been merged).
Movement and collisions of dead NPCs and the player are now disabled. When a human dies, its rigidbody is simply removed from the simulation.
Also, I've introduced Sorting Layers for controlling Z-order of rendering. From lowest to highest:
These changes are built on top of #28, so we should resolve that one first. Resolves #27 .