- Home /
How to make a 3D radar?
I'm trying to make a 3D radar system where pretty much it logs everything with a set range (say x unity world space units), takes their positions and scales it down to a small representation in a sphere.
Basically something that looks like this:
Just how do you take gameObjects that you tag, give it a texture and instantiate it?
I understand that free assets exist for this, but I just want an explanation on how the script would be built, and how it works.
Answer by awest · Oct 18, 2014 at 04:28 PM
Instantiating objects with tags/textures is just a matter of creating prefabs. You could even have each object hold a reference to it's mini version, but that isn't the best way to make a radar.
I would recommend instead, using a second, orthographic camera as your radar. Give it a SmoothFollow script and target the moving player. Then give everything that should show up a radar symbol as part of their game object. Keep all the radar symbols in a new layer that the radar camera shows and the main camera doesn't.
You may have to create your own follow script to keep the angle that you want.
This post by Scott Petrovic goes into more detail on Radars.
Seems to work well in 2D, but 3D is a little more difficult. Hmmm. I'll have to see what I come up with.
This will be no more difficult in 3D then 2D. The problem with 3D radar systems has always been how to indicate relative heights. That's a graphical game design choice. The technique is still the same.
Answer by DaiMangou · Sep 20, 2016 at 05:16 PM
Use 3D Radar Builder
Your answer
Follow this Question
Related Questions
Can someone help me fix my Javascript for Flickering Light? 6 Answers
Interactive Map 1 Answer
Setting Scroll View Width GUILayout 1 Answer
Java Script command list 3 Answers
About iOS Javascript 3 Answers