Hi,
I have a problem whit bullet trajectory in a 3rd person camera project.The bullet start from a vertex of my gun but how to tell it to go where i want... like in the center of my screen where's the crosshair are, whitout using c_trace.. cause i want to have a visible entity for my bullet.For now the bullet seem to go straight foward where the gun point but the gun are not at the center of the sreen so the trajectory of the bullet dont fit to hit the center of the sreen regardless the distance where it hit.
For now i use a code like that..
function move_bullets()
{
VECTOR bullet_speed;
my.skill30 = 1;
my.emask |= (ENABLE_IMPACT | ENABLE_ENTITY | ENABLE_BLOCK);
my.event = remove_bullets;
my.pan = camera.pan;
my.tilt = camera.tilt;
bullet_speed.x = 100 * time_step;
bullet_speed.y = 0;
bullet_speed.z = 0;
while (my)
{
c_move (my, bullet_speed, nullvector, IGNORE_PASSABLE);
wait (1);
}
}
Last edited by Altarius; 09/04/10 03:03.