Making projectiles more interesting
by Jordan Womack · in Torque Game Engine · 08/05/2004 (9:45 am) · 6 replies
Heya folks,
I've been digging into the engine, doing all the tutorials I can find and having a great time discovering how the engine works. I'd like to get some more practice by making some 'kooky' weapons to play around with. I've gone through the Codesampler tutorial on the rocket launcher, I'd love to get pointed to some other weapons tutorials if they're out there. My main question right now is this: How to I access the code that controls the flight of a projectile? I know how to modify the initial trajectory and velocity of a projectile, but how does the engine control the trajectory of a projectile once it has left the weapon? For example, I'd like to make a rocket that flies in a spiral pattern. I'm pretty sure I can write the function to spit out new trajectories for the rocket to aim at each 'tic', but where the heck can I link it into the engine code?
Thanks,
JWomack
I've been digging into the engine, doing all the tutorials I can find and having a great time discovering how the engine works. I'd like to get some more practice by making some 'kooky' weapons to play around with. I've gone through the Codesampler tutorial on the rocket launcher, I'd love to get pointed to some other weapons tutorials if they're out there. My main question right now is this: How to I access the code that controls the flight of a projectile? I know how to modify the initial trajectory and velocity of a projectile, but how does the engine control the trajectory of a projectile once it has left the weapon? For example, I'd like to make a rocket that flies in a spiral pattern. I'm pretty sure I can write the function to spit out new trajectories for the rocket to aim at each 'tic', but where the heck can I link it into the engine code?
Thanks,
JWomack
#2
JWomack
08/14/2004 (2:21 pm)
Err... I'm new here, could you explain a little more please? Thanks for your help.JWomack
#3
08/14/2004 (2:28 pm)
I think he means that you should look in the processTick function for the Projectile :)
#4
08/14/2004 (10:08 pm)
Yes. You should also check the engine reference; it describes how all that stuff works in some detail.
#5
Like this:
0 <-Target
/|\
// \\
// \\
|| ||
\\ //
\\ //
<_> <-Shooter
08/15/2004 (10:00 am)
It would be awsome to have some orbiting seekers spining around each other while tracking a vehicle. Even better would be like 6 projectiles that go out in different directions to come back and hit your target.Like this:
0 <-Target
/|\
// \\
// \\
|| ||
\\ //
\\ //
<_> <-Shooter
#6
08/15/2004 (11:44 am)
That would be pretty darn cool.
Associate Ben Garney