Enemy ViewAngles
Hey, i was wondering, is it possible to take
an enemy's "screen" and check if he's aiming
at you?
Thanks.
an enemy's "screen" and check if he's aiming
at you?
Thanks.
D3DXVECTOR3 direction; dir.x = -cosPitch * cosYaw; dir.y = -cosPitch * sinYaw; dir.z = -sinPitch; const float trailLen = 200.f; D3DXVECTOR3 trail(dir.x * trailLen, dir.y * trailLen, dir.z * trailLen); trailEnd = headPosition + dir * trailLen;