Box Collider 2D

Now that we have the basis set-up, let’s get our “Edit Collider” in our Box Collider 2D to match the size of our ship(s) more!

Now that we have the correct sizes for our colliders, if we play-test we notice one big thing… the collision still does not work, why? OnTriggerEnter(), which is used in 3D-triggered collisions. An easy fix!

Head into our “Enemy” script, and change OnTriggerEnter() to OnTriggerEnter2D() and change our “Collider” inside of the method to “Collider2D”. Save the script, play-test and… we are almost there. We just need to get the lasers working!

--

--

--

If ambition and practicality amalgamated, it would be me! I am here to climb the mountains of my ambition and catalog my journey so that someone can be changed!

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

Recommended from Medium

Building a dockerized minimal web interface for a SDS011 air quality sensor

Cracking the Data BA Code — A Cheatsheet

Analysts looking over charts, trying to make sense

How search engine works- Overview

Google Summer of Code: Week 1

Kotlin Coroutine 101

READ/DOWNLOAD*< Advanced Engineering Mathematics (Activate Learning with these NEW titles from…

Hyperloglog: Obtaining the cardinality of a set in a probabilistic way

Time Sketch 1: The YOU Clock!

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
Andrew Lengen

Andrew Lengen

If ambition and practicality amalgamated, it would be me! I am here to climb the mountains of my ambition and catalog my journey so that someone can be changed!

More from Medium

The benefits of minting Gladiaxy NFT before the public sale

Hooray! Another amazing month at lovely “LUNN” has come to an end🎉🎊

Student Spotlight: Jacob Lazerowitz

How to retrieve the Citi Card account password?