A question about spawn-powered vehicles.
5 posts • Page 1 of 1
A question about spawn-powered vehicles.
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...
(/)(°,,,°)(/)
-
pnvv - Posts: 670
- Joined: Tue Aug 26, 2014 11:46 pm
- Location: Disunited States of America
Re: A question about spawn-powered vehicles.
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.
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 . Has anyone made a tutorial for something like this?
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 . Has anyone made a tutorial for something like this?
(/)(°,,,°)(/)
-
pnvv - Posts: 670
- Joined: Tue Aug 26, 2014 11:46 pm
- Location: Disunited States of America
Re: A question about spawn-powered vehicles.
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.
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.
Ok, tried that, but the particles still spawn outside the engine when it gets going fast enough...
(/)(°,,,°)(/)
-
pnvv - Posts: 670
- Joined: Tue Aug 26, 2014 11:46 pm
- Location: Disunited States of America
5 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 8 guests