Hi, How can I tell which part of my player-model has collided with another Entity? I'm trying to program a small game were you can walk around and hit enemys with your sword. Of course they only should get hurt if they get hit by the sword and not if they get hit by my little finger or sth. How can I do that? Thx in advantage Valle
Re: collision with certain part of entity
[Re: Wollez]
#378519 07/24/1115:2207/24/1115:22
No. You don't have to split your model into two models, you can simply c_trace from the bottom to the tip of your sword (get the positions with vec_for_vertex).
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual
You'll have to attach swords model to player's one. Via vertexes or via bones. Please search AUM's for an example, I'm sure you'll find one, here is the link: gslools.de You'll find how to make collusions with "c_trace" for the sword, as Superku said.
If your sword will never get changed(you only use one sword all the time) then using a character with a sword model will do, that will save you some work.