|
particle effects
#296445
10/31/09 20:08
10/31/09 20:08
|
Joined: Jan 2007
Posts: 25 California, USA
darksmaster923
OP
Newbie
|
OP
Newbie
Joined: Jan 2007
Posts: 25
California, USA
|
I'm creating some smoke effects that are emitted when I shoot, but I have trouble moving the vector in front of the player. Usually it ends up on 1 side only. Any formula or something to change this?
I'm pretty awesome
|
|
|
Re: particle effects
[Re: Joey]
#296537
11/01/09 16:07
11/01/09 16:07
|
Joined: Jan 2007
Posts: 25 California, USA
darksmaster923
OP
Newbie
|
OP
Newbie
Joined: Jan 2007
Posts: 25
California, USA
|
Not that much code
temp.x=20; temp.y=0; temp.z=1; vec_rotate(temp,camera.pan); effect(effect_flame, 20, temp, nullvector);
I'm pretty awesome
|
|
|
Re: particle effects
[Re: Joey]
#296568
11/01/09 19:27
11/01/09 19:27
|
Joined: Jan 2007
Posts: 25 California, USA
darksmaster923
OP
Newbie
|
OP
Newbie
Joined: Jan 2007
Posts: 25
California, USA
|
No, thats why I'm having trouble. Do you just add vec_for_screen(temp,camera); after all the vector changes? Cause It just seems to make it disappear.
I'm pretty awesome
|
|
|
Re: particle effects
[Re: Joey]
#296617
11/02/09 00:42
11/02/09 00:42
|
Joined: Jan 2007
Posts: 25 California, USA
darksmaster923
OP
Newbie
|
OP
Newbie
Joined: Jan 2007
Posts: 25
California, USA
|
You mean like this? temp.x=0; temp.y=0; temp.z=200; vec_for_screen (temp, camera);
It doesn't do anything right now, is there something else I forgot?
EDIT:: Nevermind, it works now. I just have some trouble placing it in the right spot.
EDIT:: I have another question. The particles keep going through the ground, what can I do to change this?
Last edited by darksmaster923; 11/02/09 05:00.
I'm pretty awesome
|
|
|
|