whenever I try to attach the STREAK or BEAM flag to a particle
it shows up behind and to the right of the player instead of the assigned position. I am aware that these flags are not available with isometric cameras, however, I am using a simple FPS camera. this is the code,
vec_set(camera.x,player.x);
vec_set(camera.y,player.y);
vec_set(camera.z,player.z+38);
vec_set(camera.pan,player.pan);
vec_set(camera.tilt,player.tilt);
camera.pan -= 5 * mouse_force.x * time_step;
camera.tilt += 3 * mouse_force.y * time_step;
if(camera.tilt<-20)
{
camera.tilt = -20;
}
if(camera.tilt>40)
{
camera.tilt = 40;
}
player.pan = camera.pan;
player.tilt = camera.tilt;
the version is 7.80
if anyone can give me a clue as to what is causing this it would be greatly appreciated.
vec_set sets Vectors, so:
vec_set(camera.x, player.x);
is the same as
camera.x = player.x; camera.y = player.y; camera.z = player.z;
so you only need
vec_set(camera.x, player.x);
vec_set(camera.pan, player.pan);
camera.z += 38;
the code you've posted so far isn't showing anything at all for particles which you need for the STREAK and BEAM to work