Need help with a simple script
Posted: Sat Dec 12, 2009 10:13 pm
It`s about the following
Sorry that I couldn`t be more accurate with the title
it is supposed to spawn a circle and fixate it to the hit object if scene.mylaser1 is true and the put that variable to false, so it has to be turned on again. Problem is, it doesn`t work, it doesn`t even spawn a circle. (lol)
maybe someone knows why?
Oh yeah, and I tried restarting algodoo, still doesn`t work.
- Code: Select all
(e)=>{
scene.mylaser1 == true ? { scene.addcircle({ radius := 0.01; zdepth = 50; pos := e.pos; color = [1.0, 1.0, 1.0, 1.0] }); scene.addfixjoint({ pos := e.pos; zdepth := 25 }); scene.mylaser1 = false } : {} }
Sorry that I couldn`t be more accurate with the title
it is supposed to spawn a circle and fixate it to the hit object if scene.mylaser1 is true and the put that variable to false, so it has to be turned on again. Problem is, it doesn`t work, it doesn`t even spawn a circle. (lol)
maybe someone knows why?
Oh yeah, and I tried restarting algodoo, still doesn`t work.