Browse Search Popular Register Upload Rules User list Login:
Search:
Radial Copy

Image:
screenshot of the scene

Author: s_noonan

Group: Technical

Filesize: 127.5 kB

Date added: 2014-04-15

Rating: 5.9

Downloads: 571

Views: 267

Comments: 11

Ratings: 3

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

Radial Copy
Last edited at 2016/07/02 20:37:25 by s_noonan
Please log in to rate this scene
edit
Similar scenes
Title: 8 cylinder radial
Rating: 5
Filesize: 83.92 kB
Downloads: 809
Comments: 0
Ratings: 1
Date added: 2008/06/22 17:09:16
Made with: Phun
Rating: rated 5
download
Title: Radial Tracer Rainbow Color-Changing Script
Rating: 5
Filesize: 23.85 kB
Downloads: 2135
Comments: 0
Ratings: 1
Date added: 2024/02/26 22:51:13
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Resonating Radial Engine
Rating: 5.5
Filesize: 157.73 kB
Downloads: 766
Comments: 3
Ratings: 6
Date added: 2008/11/05 18:29:00
Made with: Phun
Rating: rated 5.5
download
Title: Lunahod3 with a 2 radial engine on the mars
Rating: 5.5
Filesize: 1 MB
Downloads: 554
Comments: 1
Ratings: 2
Date added: 2010/10/19 12:45:00
Made with: Algodoo before v1.8.5
Rating: rated 5.5
download
Title: RADIAL MOTOR!!!
Rating: 5.625
Filesize: 29.08 kB
Downloads: 369
Comments: 0
Ratings: 2
Date added: 2010/06/16 11:26:59
Made with: Algodoo before v1.8.5
Rating: rated 5.6
download
Title: Radial Engine
Rating: 5.375
Filesize: 74.87 kB
Downloads: 497
Comments: 0
Ratings: 2
Date added: 2011/01/09 00:30:32
Made with: Phun
Rating: rated 5.4
download
Very clever idea! Well coded, and instructions are clear and straightforward. :tup:
Thanks.
You could use scene.cloneEntity instead of doeing it by yourself...:huh:
Kilinich,

Thanks. I was able to reduce the code by 87% by using your suggestion.
You should use := instead of = for creating local temporary variables
OK. Did it. I don't know what the advantage of doing this is, but I'll defer to your judgment on this matter.
I can't speak for kilinich, of course, but I believe that the use of a colon along with the equal sign when defining a variable is only for good programming practice, and not for anything that would affect the operation of the code. When you use the colon, Algodoo will warn you with a message in the console if you accidentally define the same variable twice. For example, in your "onClick" code, you define G0 in the first line. Just to prove my point, I added a line on top of the line that defines G0, as follows....
g0 := 0;
When I ran the code, the following message was printed in the console:
81870 ms: - WARNING - Variable "g0" already declared in this scope.

If there is any other reason for using the colon besides good programming practice, I would like to know about it.
Last edited at 2014/04/17 01:45:11 by Xray
Thanks Xray. That makes sense. I'm guessing that there may also be a case where a value can be assigned to an existing global variable of the same name if the variable is not declared locally.
Last edited at 2014/04/17 10:22:19 by s_noonan
There is another rule concerning colons, and that is when you assign values to variables within functions you must always use a colon along with the equal sign. I recall reading about that in the forum some time ago.
There is another rule concerning colons, and that is "An apple a day keeps the doctor away".
And one more rule.... Before you go in for your colonoscopy appointment, make absolutely sure that you.... um...... never mind.