Making a Laser Push an Object!?!?

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

Making a Laser Push an Object!?!?

Postby Laraso » Sun Sep 20, 2009 6:46 pm

Is there any way that you can make a laser push an object, i.e. onLaserHit{e.geom.velocity = 50} or something!?!?
Phundamentalist... When possible!
Image
User avatar
Laraso
 
Posts: 241
Joined: Tue Sep 01, 2009 12:54 am
Location: What are you, a stalker?

Re: Making a Laser Push an Object!?!?

Postby Fujitsu » Sun Sep 20, 2009 7:28 pm

I don't believe that you can change velocity onLaserHit just yet, although you can always create a polygon on collide to push off of the shape.
Image
Gimmie money.
User avatar
Fujitsu
 
Posts: 328
Joined: Tue Sep 01, 2009 12:28 am
Location: Canada

Re: Making a Laser Push an Object!?!?

Postby standardtoaster » Sun Sep 20, 2009 7:47 pm

Code: Select all
scene.addCircle({pos :=e.pos; killer := true; radius := 0.125})

This is what Fujitsu meant. Make sure that the object it hits is immortal.
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: Making a Laser Push an Object!?!?

Postby cdh473 » Sun Sep 20, 2009 9:14 pm

I thought it would be something like this:
Code: Select all
onLaserHit:     (e)=>{e.geom.vel=velocity here}

or is that not possible in Algodoo?
Please excuse my posts. I am extremely stupid.
User avatar
cdh473
 
Posts: 817
Joined: Tue Sep 01, 2009 12:37 am
Location: Yes

Re: Making a Laser Push an Object!?!?

Postby niffirg1 » Sun Sep 20, 2009 9:19 pm

I am sorry to say cdh that it is impossible. I have tried. There needs to be variables for size, radius and velocity.
User avatar
niffirg1
 
Posts: 376
Joined: Mon Aug 31, 2009 10:31 pm
Location: The Great American South!

Re: Making a Laser Push an Object!?!?

Postby Laraso » Sun Sep 20, 2009 9:20 pm

@standardtoaster: You don't have to make the circle a killer.
@cdh473: No... I don't think it is...

Dangit, I was hoping to make a rocket and/or gun using a laser doing this. Looks like my hopes have just been crushed. :(
Phundamentalist... When possible!
Image
User avatar
Laraso
 
Posts: 241
Joined: Tue Sep 01, 2009 12:54 am
Location: What are you, a stalker?

Re: Making a Laser Push an Object!?!?

Postby standardtoaster » Sun Sep 20, 2009 9:29 pm

Laraso wrote:@standardtoaster: You don't have to make the circle a killer.
@cdh473: No... I don't think it is...

Dangit, I was hoping to make a rocket and/or gun using a laser doing this. Looks like my hopes have just been crushed. :(

You don't have to make them killer if you love lag. ;D
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: Making a Laser Push an Object!?!?

Postby Laraso » Sun Sep 20, 2009 9:34 pm

standardtoaster wrote:
Laraso wrote:@standardtoaster: You don't have to make the circle a killer.
@cdh473: No... I don't think it is...

Dangit, I was hoping to make a rocket and/or gun using a laser doing this. Looks like my hopes have just been crushed. :(

You don't have to make them killer if you love lag. ;D


Lol, or you might just have a nice computer, like me. :mrgreen:
Phundamentalist... When possible!
Image
User avatar
Laraso
 
Posts: 241
Joined: Tue Sep 01, 2009 12:54 am
Location: What are you, a stalker?

Re: Making a Laser Push an Object!?!?

Postby Fujitsu » Sun Sep 20, 2009 10:30 pm

You don't have to make them killer if you love lag


Maybe he likes billions of useless circles?
Image
Gimmie money.
User avatar
Fujitsu
 
Posts: 328
Joined: Tue Sep 01, 2009 12:28 am
Location: Canada

Re: Making a Laser Push an Object!?!?

Postby Laraso » Sun Sep 20, 2009 10:52 pm

Fujitsu wrote:Maybe he likes billions of useless circles?


Yes, actually. Very useful when trying to make a low lag bomb... Well, sorta...
Phundamentalist... When possible!
Image
User avatar
Laraso
 
Posts: 241
Joined: Tue Sep 01, 2009 12:54 am
Location: What are you, a stalker?

Re: Making a Laser Push an Object!?!?

Postby RA2lover » Sun Sep 20, 2009 11:47 pm

Frank made it before.
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: Making a Laser Push an Object!?!?

Postby Laraso » Mon Sep 21, 2009 3:41 am

RA2lover wrote:Frank made it before.

What, a laser velocity changer??? :o
Phundamentalist... When possible!
Image
User avatar
Laraso
 
Posts: 241
Joined: Tue Sep 01, 2009 12:54 am
Location: What are you, a stalker?

Re: Making a Laser Push an Object!?!?

Postby RA2lover » Mon Sep 21, 2009 6:02 pm

nope. a laser pusher which doesn't work well when pushing in speeds above 120 m/s
http://www.algodoo.com/algobox/details.php?id=30428
basically a spawn gun.
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


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 2 guests