hello if you want to learn a script or 2 or 10 or so just ask in comment or look at those scripts beneath this text...
(e)=>{ e.this.density=e.other.density } density can be changed to almost anything restitution, airfrictionmult, friction, attraction or other the 2 densities/other don't have to be the same you can make a circle hit a box and get the box density
(e)=>{scene.addcircle ( { pos=e.pos; density:=12; color:=[0,0,0,1]; attraction:=3; radius:=4; oncollide=(e)=>{scene.addbox({ pos=e.pos; density:=13; color:=[0,1,0,1]; length:=2; height=:1 }) } } ) }that will spawn circles that spawns boxes
try playing around with the valus and variables
some of the scripts used for... well something
(e)=>{ e.this.density=e.this.density +2; e.this.oncollide=(e)=>{e.this.density=e.this.density +2; e.this.oncollide=(e)=>{ e.this.oncollide=(e)=>{} }} } that will change a density to its own density +2 every time it hits something but with the extra scripts it will do it 2-3 times before loosing all effect
(e)=>{ e.this.texture=e.other.texture } if having something like a textured box you can use this script on a circle or so and when it hits the box it will get same texture
to spawn a box use size:=[ 1, 2 ] or so to tell size
and to spawn a tracer use scene.addpen({ the script you want })
and please rate this scene if I have helped you in any way
you can also add me on Skype (my Skype name is casper418161) or msn (my email/msn name is falandysz@live.dk)