Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Particles - how do you change their direction?

Author
Message
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 12th Apr 2005 23:38
Particles seem to only "eject" at the angle the emitter is set to when you first call update physics. I can't get them to change direction with the emitter.

Take a look at the following example. The cone shows the direction of the emitter. The particles always fire upwards, no matter what angle the emitter is at. Any ideas?



BatVink
Mike Johnson
TGC Developer
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 12th Apr 2005 23:49
One way of doing this is by using a wind effector. Try adding this to the end of your set up code -



And next in your main loop -



Now when you run the demo see how the particles shoot off to the right and into the distance.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 13th Apr 2005 06:55
Cheers!

BatVink

Login to post a reply

Server time is: 2024-11-23 22:14:30
Your offset time is: 2024-11-23 22:14:30