Asteroids
- September 26, 2023
- pavankat
Controls wasd to move shoot with mouse left click or spacebar Code https://github.com/katpavan/asteroids Learned/Notes prefabs for bullet and asteroidboth dynamic Rigidbody2D because we want physics to act on thembullets are kinematic since we don't want physics to act on themif we did, then we'd make them dynamicInstantiate to create bullets from the prefabOnCollisionEnter2Dto detect colli…