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

Genesis Equipment Introduction & Guide

Types of environments found in hybrid clouds

Help him!! Help your code reviewer.

To build a castle through “SVG” for me

How to Plan a Successful Hackathon at Your Company

Common mistakes with Sidekiq

How to build a simple chat messaging system in Rails

My Experiments with Jupyter Notebook On GCP

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

Moving Platform and Lives

My journey becoming a Unity game developer: Make a game look beautiful-Door, Frame, and Wall…

Creating a triple shot for my Player

Game Programmer vs Game Designer