Hit fixed target?
by Kevin Yu · in Technical Issues · 04/24/2007 (11:47 pm) · 6 replies
Hi everyone,
I am trying to make the projectile hit a fixed target. When the projectile hit an object which is not the target I want, it will not explode and pass through it, and the projectile will not be deleted, it will keep on moving, and detecting if it has hit the target.
Does anyone has an idea about how to make this happen?
Thanks
Kevin.Y
I am trying to make the projectile hit a fixed target. When the projectile hit an object which is not the target I want, it will not explode and pass through it, and the projectile will not be deleted, it will keep on moving, and detecting if it has hit the target.
Does anyone has an idea about how to make this happen?
Thanks
Kevin.Y
#2
04/25/2007 (12:46 pm)
The Arcane FX has a targeting system built into it.
#3
04/25/2007 (3:12 pm)
Everything is possible but it would take some alterations to the engine itself, for disabling the collision detection you might want to look at the Projectile::processTick() function found in projectile.cc and see how that works for the rebounding bullets not to process the collision.
#4
I'm trying to modify the codes. I can choose the target and let the projectile explodes when it hits the right object. But my problem is I must enable the collision of the bullet so that I can judge if the bullet is hit on the right target., but the projectile couldnt pass through the object it hits on (not the target object), it will "stuck" inside the object and disappears in a few seconds.
It seems to be mCurrVelocity problem, I'm still working on it...
@Surge
Does Arcane FX working with TSE/TGEA? I saw the demo, it was fanatastic. If it works with TSE/TGEA, I think my team will purchase one.
04/25/2007 (8:11 pm)
Thank you guys!I'm trying to modify the codes. I can choose the target and let the projectile explodes when it hits the right object. But my problem is I must enable the collision of the bullet so that I can judge if the bullet is hit on the right target., but the projectile couldnt pass through the object it hits on (not the target object), it will "stuck" inside the object and disappears in a few seconds.
It seems to be mCurrVelocity problem, I'm still working on it...
@Surge
Does Arcane FX working with TSE/TGEA? I saw the demo, it was fanatastic. If it works with TSE/TGEA, I think my team will purchase one.
#5
04/26/2007 (6:23 am)
I think Jeff is still implementing it into TGEA. I no nothing of the timeline. But it looks promising.
#6
04/28/2007 (5:04 pm)
Oncollision() Look into that code snippet and details behind it.... I gotta head to bed, if no one answers this ill write more on it tomarrow morning.
Torque Owner Caleb
Default Studio Name