My 90 day journey becoming a Unity game developer: Day-29

Final result of the asteroid behavior.
Set the asteroid to the Foreground layer, added a circle collider, and a rigidbody with no gravity.
Rotating the asteroid using transform.Rotate() and the parameter Space.Self.
Rotating the asteroid using transform.Rotate() and the parameter Vector3.forward.
Explosion animation created.
Laser collides with the asteroid and instantiates the explosion, plus the laser and asteroid are destroyed.
Destroys the explosion after 3 seconds as soon it’s called upon.
Asteroid destroyed.

--

--

--

Learning to become a Unity game developer.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

jenkins installation with docker

Object oriented programming

Sublime 4 with golang (macos)

Agile Trend Analysis-2020

Apache Cordova vs Flutter: What are the differences?

Redis: main configuration parameters and performance tuning overview

What is bulkify a code in Salesforce Apex?

Introduction & Use of Robots.txt

Introduction & Use of Robots.txt

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rhett Haynes

Rhett Haynes

Learning to become a Unity game developer.

More from Medium

My journey becoming a Unity game developer: 2.5D Infinite Runner-Ledge Grab System-Pt2

Indy Pro ’22: IWTV

Getting started with GAME DEVELOPMENT.

Most Common Problem Faced by New Game Developers