Why Torque need Modifications for Melee?
by Emerson Gresoski · in Torque Game Engine · 03/04/2007 (8:40 am) · 4 replies
Hi guys, I need to understand one thing, why I need modify the source code of the Torque to do melee? What Torque don't have for this? can't I do this only with the Torque Script?
About the author
#2
03/05/2007 (8:15 am)
Thank you Maxwell!!!
#3
do search for "ContainerRayCast" or look at TDN articles regarding that.
03/05/2007 (3:18 pm)
The other option (without projectile) is to cast the ray from an eye of player object to see if it's collides with another needed object, and after that apply damage.do search for "ContainerRayCast" or look at TDN articles regarding that.
#4
03/09/2007 (4:38 am)
Thank you bank, I'll see this! ;)
Torque 3D Owner Max
The thing that the engine doesn't come with out of the box is Joint Intersection. So it doesn't know when your sword connects with someone's head without an engine mod.
What you could do instead, is just make some swing animations, a sword, mount is as normal. When you fire with the sword out, have it play the animation once, and shoot an invisible, short lasting projectile that does the damage your sword would.
This would emulate you swinging a sword and hitting someone, but for real nice connections, an engine modification would be necessary