Detailed knifing
by Adam Gardner · in Torque 3D Professional · 03/07/2013 (10:52 am) · 1 replies
I was wondering on how to do a detailed knife animation, what I want it to do is when you press a button it calls the knife ray-cast function to cause damage to the mesh but I want the knife to close off any space between the player and the prey, and then play the knife animation and stab the prey and make it look like it stabs into the prey's mesh like it's actually cutting into the enemy. I want to know if this is mainly done with animations or is there code that needs to be done to pull this off.
Associate Ron Kapaun
3tdstudios.com
I would recommend breaking what you want down into two components, the visual and script.
For the visuals, I would recommend a blended series of animations for making your knife look and act the way you want. Chances are, you will have to do some model swaps to get what you want. What you want will probably be a pretty complex set of animations, but it can be done.
The script side would be based on however you make the knife a weapon. There are a number of ways to do this in T3D and you can probably do a 'melee weapon' search to read more about them.
Hope that helps some.
Ron