A question about spawn-powered vehicles.

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

A question about spawn-powered vehicles.

Postby pnvv » Sat Oct 25, 2014 3:09 pm

I built a motorcycle-like thingy today. It was okay, but I found that once it got going pretty fast the spawned engine particles would start to get left behind. Eventually, they just spawned outside the chamber altogether. I know fixing this requires something like a laser to calculate engine speed but I have no idea how that is done...
Image

(/)(°,,,°)(/)
User avatar
pnvv
 
Posts: 670
Joined: Tue Aug 26, 2014 11:46 pm
Location: Disunited States of America

Re: A question about spawn-powered vehicles.

Postby electronicboy » Tue Oct 28, 2014 3:01 am

You should just be able to modify the spawn script to take the speed of the object that's spawning them. Pretty sure the variable is easily accessible, e.<fillme>.vel
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm

Re: A question about spawn-powered vehicles.

Postby pnvv » Tue Oct 28, 2014 4:59 pm

Mucho thanks.

Sorry for not posting this in the thyme section...

EDIT: Ok, after trying to implement this in some way I now am aware that I have absolutely no idea what I'm supposed to do with that :wtf: . Has anyone made a tutorial for something like this?
Image

(/)(°,,,°)(/)
User avatar
pnvv
 
Posts: 670
Joined: Tue Aug 26, 2014 11:46 pm
Location: Disunited States of America

Re: A question about spawn-powered vehicles.

Postby electronicboy » Tue Oct 28, 2014 10:18 pm

When you're adding a object, just add something along the lines of:

vel = e.geom.vel;

to the attributes you set for the box.
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm

Re: A question about spawn-powered vehicles.

Postby pnvv » Tue Oct 28, 2014 11:11 pm

Ok, tried that, but the particles still spawn outside the engine when it gets going fast enough...
Image

(/)(°,,,°)(/)
User avatar
pnvv
 
Posts: 670
Joined: Tue Aug 26, 2014 11:46 pm
Location: Disunited States of America


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 5 guests

cron