Browse Search Popular Register Upload Rules User list Login:
Search:
Replicating Virus!

Image:
screenshot of the scene

Author: UnityDogGaming04

Group: Default

Filesize: 5.87 kB

Date added: 2019-02-20

Rating: 5

Downloads: 1297

Views: 284

Comments: 3

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

The virus is the orange box. Every object that collides with it will have it's onCollide and postStep changed to the virus's. Instead of writing a set program out to write to the collided block's code, it has to directly copy ALL of the code of onCollide and postStep. Otherwise the code of the parent virus would have to be infinitely long.
Think of it like this. If you told someone a secret like "Abc, pass it on" you would technically need to mention they need to tell their reciever to pass it on, and tell them they need to tel their reciever that they need to tell their reciever to pass it on, and so on.

Thanks.
it is important to mention that you must drag the parts around!
Last edited at 2019/02/22 21:30:42 by UnityDogGaming04
Please log in to rate this scene
edit
Similar scenes
Title: The Virus
Rating: 6
Filesize: 43.62 kB
Downloads: 1109
Comments: 2
Ratings: 3
Date added: 2011/10/17 05:09:29
Made with: Algodoo v2.0.0 RC5
Rating: rated 6
download
Title: The Virus Marble Race
Rating: 5
Filesize: 0.53 MB
Downloads: 1024
Comments: 1
Ratings: 1
Date added: 2018/12/18 17:16:22
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Super Virus
Rating: 5
Filesize: 31.12 kB
Downloads: 1305
Comments: 0
Ratings: 1
Date added: 2012/02/28 02:25:36
Made with: Algodoo v2.0.2 Edu
Rating: rated 5
download
Title: Pandemia
Rating: 5.8889
Filesize: 49.36 kB
Downloads: 1653
Comments: 4
Ratings: 3
Date added: 2011/02/13 19:33:34
Made with: Algodoo before v1.8.5
Rating: rated 5.9
download
Title: Virus Marble Race Leg 1
Rating: 5
Filesize: 1.46 MB
Downloads: 548
Comments: 1
Ratings: 1
Date added: 2016/11/08 12:37:31
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Self replicating robot
Rating: 5
Filesize: 10.71 kB
Downloads: 290
Comments: 1
Ratings: 1
Date added: 2025/08/10 01:18:41
Made with: Algodoo v2.2.4
Rating: rated 5
download
Nothing happens when I run the scene.
That's actually a good solution for these types of simulations! Also Xray, move the virus block.
Ken is right, the block must be dragged, sorry for not mentioning. Editing the desc now.