Browse Search Popular Register Upload Rules User list Login:
Search:
Scripting help

Image:
screenshot of the scene

Author: Death_noob

Group: Default

Filesize: 14.84 kB

Date added: 2016-12-30

Rating: 5

Downloads: 128

Views: 160

Comments: 5

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

If someone could make a help scene that wouldd be nice.
Here is something I made.
Please log in to rate this scene
edit
Similar scenes
Title: Scripting Tests
Rating: 5.625
Filesize: 88.06 kB
Downloads: 708
Comments: 2
Ratings: 2
Date added: 2010/01/10 00:18:46
Made with: Algodoo before v1.8.5
Rating: rated 5.6
download
Title: Basic Scripting Scene A lot of things that run on scripts!!!!!
Rating: 5.4444
Filesize: 39.95 kB
Downloads: 586
Comments: 2
Ratings: 3
Date added: 2009/11/11 00:56:33
Made with: Phun
Rating: rated 5.4
download
Title: Need some help with scripting
Rating: 5
Filesize: 292.73 kB
Downloads: 399
Comments: 0
Ratings: 1
Date added: 2011/04/21 02:26:22
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Water maker scripting
Rating: 5
Filesize: 59.54 kB
Downloads: 695
Comments: 0
Ratings: 1
Date added: 2012/03/03 17:12:51
Made with: Algodoo v2.0.1
Rating: rated 5
download
Title: Simple Scripting
Rating: 5
Filesize: 11.55 kB
Downloads: 295
Comments: 0
Ratings: 1
Date added: 2011/12/03 06:45:02
Made with: Phun
Rating: rated 5
download
Title: ALGOODO SCRIPTING GUIDE (ENG)
Rating: 4.5
Filesize: 384.84 kB
Downloads: 497
Comments: 6
Ratings: 2
Date added: 2014/04/26 23:11:38
Made with: Algodoo v2.1.0
Rating: rated 4.5
download
Need spawning objects?
Here

(e)=>{
scene.AddCircle({
radius := 0.25;
pos := pos;
density := 2.0;
vel := e.normal * 10
})
}

You're welcome!
Or i will make it for you.
What does e.normal do? The way you use it in the above script leads me to presume it has x and y components, but other than that what is it? :?

Also, on the topic, here are some other spawnable geometries:
(e)=>{
Scene.addPolygon({
surfaces := [[[-0.5, -(3 ^ 0.5) / 6], [0.0, (3 ^ 0.5) / 3], [0.5, -(3 ^ 0.5) / 6]]];
pos := pos;
density := 2.0;
vel := e.normal * 10
})
}

(e)=>{
Scene.addBox({
size := [1.0, 1.0];
pos := pos;
density := 2.0;
vel := e.normal * 10
})
}
Last edited at 2017/01/01 09:36:33 by icrls984
Thanks!
I just have trouble remembering how to put the brackets :bonk: