» Sun May 27, 2012 7:35 am
Well, searching through the internet, I've found out how to determine the intersection point of a vector and a plane. However, it wouldn't work, and it took me a while to find out why.
I was wrong before when I said the method of extending a line from the nodes work. I did another test, this time creating three nodes. One node (the light projectile) is placed at the attacker's wrist node. The second node (paralyze projectile), is placed 128 units from the wrist node, in the direction of the wrist node towards the finger node. The third node (fireball projectile) is placed 256 units from the wrist node, in the same direction.
http://youtu.be/FOn6yCGVVS0
As you can see, the line created by the three nodes is not the same as the position of the weapon at time of impact. I have tried with a couple of different nodes, including the weapon node. There are some changes in trajectory, but the end result is still that the line is not the same as the weapon's position.
The positions of the nodes seem to be static and unmoving when the attack takes place. As in, when I place the light projectile at the attacker's hand during the OnHit event, it's actually placed where the hand was after the weapon is raised, but before it is swung. It appears that the attack animation doesn't actually move the skeleton.