Jump to content

Detecting position/body parts when collision happens with object/prim


luciedrmz
 Share

You are about to reply to a thread that has been inactive for 3859 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I want to detect the body parts (hand, head etc.) of my AVI when a certain object comes and hits the AVI say a bullet. Is this possible? If yes how?

Could llCastRay be of help? It returns a coordinate of object from which ray reflected back (this is my understanding, hope that's correct). How do I detect where exactly and which body part of the AVI ray hit?

 

Link to comment
Share on other sites

I want to detect the body parts (hand, head etc.) of my AVI when a certain object comes and hits the AVI say a bullet. Is this possible? If yes how?

Could llCastRay be of help? It returns a coordinate of object from which ray reflected back (this is my understanding, hope that's correct). How do I detect where exactly and which body part of the AVI ray hit?

 

Link to comment
Share on other sites

You can wear full body armor.  Attach a prim to every attachment point and then script them to yell when hit. Otherwise, there's not much you can do.  The servers don't know where parts of your body are. They know where the center of your body is and they let your viewer fill in the rest by knowing how it is supposed to animate you.  With llCastRay you can certainly tell the region position where the ray made contact with an av, but you can't leap from that informnation to tell whether you have detected a kneecap or an ear lobe.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3859 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...