Browse Search Popular Register Upload Rules User list Login:
Search:
Raycasting radar DEMO

Image:
screenshot of the scene

Author: JakubKubo

Group: Technical

Filesize: 17.04 kB

Date added: 2021-01-16

Rating: 5

Downloads: 933

Views: 215

Comments: 3

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

WHOLE SCRIPT IN LASER
_res = resolution of output polygon, min: 3,max: 64, default: 16
_tick = time in ticks radar scan one direction min: 4
(laser needs few ticks to read correctly)

move the box with arrow keys and try to navigate only by radar screen

vehicle and missiles are NOT included:D

Feel free to USE or EDIT, just add credits to "Jakub_Kubo"
Last edited at 2021/01/16 19:37:53 by JakubKubo
Please log in to rate this scene
edit
Similar scenes
Title: Radar (real / working)
Rating: 8.068
Filesize: 102.55 kB
Downloads: 1556
Comments: 19
Ratings: 103
Date added: 2009/01/24 00:52:05
Made with: Phun
Rating: rated 8.1
download
Title: Radar demonstration
Rating: 5
Filesize: 33.76 kB
Downloads: 752
Comments: 2
Ratings: 1
Date added: 2019/06/21 04:20:25
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: REAL RADAR
Rating: 5
Filesize: 468.09 kB
Downloads: 546
Comments: 0
Ratings: 1
Date added: 2009/01/31 03:38:44
Made with: Phun
Rating: rated 5
download
Title: Night game
Rating: 5
Filesize: 127.08 kB
Downloads: 338
Comments: 0
Ratings: 1
Date added: 2017/08/20 09:56:43
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: submarine radar
Rating: 7.125
Filesize: 34.73 kB
Downloads: 605
Comments: 4
Ratings: 8
Date added: 2008/08/27 19:13:04
Made with: Phun
Rating: rated 7.1
download
Title: RADAR 2!
Rating: 3.5714
Filesize: 10.75 kB
Downloads: 373
Comments: 1
Ratings: 7
Date added: 2009/03/04 16:31:31
Made with: Phun
Rating: rated 3.6
download
Wow, you sure put a lot of work into coding this scene!

I wonder if you saw my own version of an Algodoo RADAR? If not, here is the link to it: Radar Sim

The coding is a lot simpler than yours and it works differently. It just proves that there are many different ways that a scene can be designed and built!

Nice job! :tup:
Last edited at 2021/01/16 19:53:34 by Xray
I think that easiest way to make radar is to make a circles and use this formula:
(math.vecs.dist(e.pos,pos)/fadeDist+radar­Pos*ScreenRadius)
Which I used multiple times in some older scenes, like helicopter rescuing mission etc.

This is a bit different, everything have to be in ONE object and output is ONE polygon(not many elements), no variables (except I/O), customizable, yet simple to use while being robust/rigid

How it works:
I'm scanning the surroundings, storying it as array and making a polygon out of that, is there and easier way of doing that? I'm planning that I'll use some table of arrays like: _0=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]] and then just use _0(i) which I need, so I don't have to generate them over and over again, it should help lowering the CPU usage
There isn't direct array access, so I'm using this trick and magic (sine and cosines) to make it work
I made this in one day from scratch and rewrote it few times, it is part of bigger project

I came back to Algodoo, because I had to make a project for University subject about simulation, and professor knew about Phun, so he allowed me to use Algodoo
I also have a new laptop (for studying of course :rolleyes: ), which is great, cause my old PC is...pretty old!
I even made a prototype of my bachelor degree work in Algodoo!
I'll upload both here, cause I know (at least hope) you are curious to see them!
JakubKubo -- I have been trying to contact you to tell you not to upload more than THREE scenes per day. I had to delete some of your scenes because of that rule. Please respond....

Thanks