youvsvirus / youvsvirus-unity

Unity version of the you vs virus game.
GNU General Public License v3.0
1 stars 1 forks source link

Bounding Box & Rudimentary Collisions #14

Closed ghost closed 4 years ago

ghost commented 4 years ago

The map is now bounded, resolves #2 . The player now collides with other humans and the walls. Right now, the player and the other humans use rigidbody physics for collision handling, but there are still drag and friction which cause the NPCs to slow down over time. There is still some fine-tuning nessecary for #4.

maccxs commented 4 years ago

Hi, this looks good. Thank you. On my screen, the bounds of the map seem a little weird. The smileys vanish nearly half up and down but to the left and right the map ist not used as a whole?

maccxs commented 4 years ago

The map is now bounded, resolves #2 . The player now collides with other humans and the walls. Right now, the player and the other humans use rigidbody physics for collision handling, but there are still drag and friction which cause the NPCs to slow down over time. There is still some fine-tuning nessecary for #4.

Linear and angular drag can be set to zero, but maybe if the smileys move on their own this will look different anyway.

ghost commented 4 years ago

@maccxs I used your idea from #15 to programmatically place the barriers just outside the viewport. The smileys now collide perfectly with the viewport boundary; this combines the advantages of both approaches.