Lasers

If you have problems installing or running Algodoo, have found a bug or need in-game help - this is it!

Lasers

Postby trainrex » Thu Sep 17, 2009 2:43 pm

Does anyone know if you can turn of gravity with a laser? if so how?
trainrex
 
Posts: 1
Joined: Mon Sep 07, 2009 11:49 pm

Re: Lasers

Postby Jallaboy » Fri Sep 18, 2009 2:55 pm

like this?

Direct Downlod:
Image

Scene in Algobox:
Image


tell me if you want me to explain how i did it ;)
Hey, if you want me to make a sig for you, just PM me.
TOTALLY FREE SERVICE!!
I can make gameplay sigs too!

My site (please enter)
User avatar
Jallaboy
 
Posts: 30
Joined: Tue Sep 01, 2009 5:01 pm

Re: Lasers

Postby BoJaN4464 » Fri Sep 18, 2009 4:09 pm

If you want to turn gravity off on an object you can set it's density to the same as air, I think it's 0.01;
and for everything you do sim.gravitySwitch = false.

onLaserHit(inside laser)
Code: Select all
(e)=>{e.geom.density = 0.01}


You can access anything the laser touches using e.geom.* in the onLaserHit box, you can change any properties you wish with this method.
BoJaN4464
 
Posts: 8
Joined: Fri Sep 18, 2009 1:04 am

Re: Lasers

Postby RA2lover » Tue Sep 22, 2009 9:17 pm

or, you also might want to turn the gravity direction, so

sim.gravityangleoffset = angle in radians
Jrv wrote:
TC42 wrote:Quite honestly, I didn't think anyone on 4chan has that good a use of grammar, spelling, usage, mechanics, ect.
But I've never been there, so I may be wrong.


GTFO newfgt
User avatar
RA2lover
 
Posts: 607
Joined: Mon Aug 31, 2009 8:43 pm
Location: Brazil

Re: Lasers

Postby Fujitsu » Wed Sep 23, 2009 5:23 am

Or you could always just turn off gravity with Sim.GravitySwitch=false.
Image
Gimmie money.
User avatar
Fujitsu
 
Posts: 328
Joined: Tue Sep 01, 2009 12:28 am
Location: Canada

Re: Lasers

Postby RA2lover » Wed Sep 23, 2009 5:57 pm

or changing the gravity strength to 0(m/s²) :lol:
Jrv wrote:
TC42 wrote:Quite honestly, I didn't think anyone on 4chan has that good a use of grammar, spelling, usage, mechanics, ect.
But I've never been there, so I may be wrong.


GTFO newfgt
User avatar
RA2lover
 
Posts: 607
Joined: Mon Aug 31, 2009 8:43 pm
Location: Brazil

Re: Lasers

Postby KarateBrot » Sat Sep 26, 2009 12:20 pm

BoJaN4464 wrote:If you want to turn gravity off on an object you can set it's density to the same as air, I think it's 0.01;


No that's wrong. If you set the density of a objact to the density of air, gravity still exists for this object. Buoyancy and gravity just compensate each other.
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 4 guests