bullet raycast did NOT touch enemy but always kill him (video)

here is the video … inside explain all my problem.
at the end ofthe video, you can see the small collide recive damage.

You should debug with a Debug.Log message what object you did hit.
What does happen if you have the collider of your target disabled ? Does it still get hit (even so it should not in that case)?

thanks , I understand, so apreciatted…

i use this line toknow what collide is hit by raycast but i can see
when i hit the ground under his foot, one meter down him, racast hit and kill him.
and the collide is only in the chest , not in his foots.

here is the debug.log picture, it says hit ground NOT him, …
and always hi die.
.
2345400--158698--ground f.jpg

and hereis the video, raycast hit the ground and kill.

going to have to repeat @Dantus from the other thread on this (how make a wall to protect enemy from raycast - Unity Engine - Unity Discussions ): we really are going to need to see the code you are using to really help with this.

thanks somush … here is my raycast code:

    var EffectsObject1: GameObject;
    var emitter : ParticleEmitter;
    var TheDamage = 100;

function Update () {

    var hit : RaycastHit ;
    var ray : Ray = Camera.main.ScreenPointToRay(Vector3(Screen.width*0.5, Screen.height*0.5, 0));

    if (Input.GetMouseButtonDown(0))
    {
        GetComponent.<AudioSource>().Play();// shoot sound     
        emitter.GetComponent(ParticleEmitter).emit = true; //hit wall particles sys
     
        if (Physics.Raycast (ray,hit,100)) 
        { 
            // small particles on hit.point
            var particleClone = Instantiate (EffectsObject1, hit.point, Quaternion.LookRotation(hit.normal));
            Destroy(particleClone.gameObject, 1);
         
            hit.transform.SendMessage("ApplyDamage", TheDamage, SendMessageOptions.DontRequireReceiver);
            Debug.Log (hit.collider.name);             
        }
    }
            else
        {
        emitter.GetComponent(ParticleEmitter).emit = false;
        } 
}

and here is the damage receiver code too.
to see what happens when hit.

.

var Health = 2;
var deadReplacement : Rigidbody;
//var gateKeeper: GateKeeper;

function Start(){
    scoreMesh = GameObject.Find("Score Text");
}
function ApplyDamage (TheDamage : int) {
    // We already have less than 0 hitpoints, maybe we got killed already?
    if (Health <= 0.0)
            return;
Health -= TheDamage;
    if (Health <= 0.0) {
        muerte ();
    }
}

function muerte () {
PlayerPrefs.SetInt("soldado_muerto_exit_01", 1 );
        var dead : Rigidbody = Instantiate(deadReplacement, transform.position, transform.rotation);
        //dead.GetComponent.<Rigidbody>().AddForce(transform.forward * 5);
        Destroy(gameObject);
        }
// We require the barrel to be a rigidbody, so that it can do nice physics
@script RequireComponent (Rigidbody)