View Single Post
Old 05-06-2010, 02:04 AM   #928
Zerzax
Zerzy
 
Zerzax's Avatar
 
Join Date: Mar 2008
Posts: 708

Submissions (2)

Zerzax is a jewel in the rough (192)Zerzax is a jewel in the rough (192)Zerzax is a jewel in the rough (192)

2008 Spell olympics - Fire - SilverSpell Making Session 13 WinnerSpell Making Session 12 Winner

Send a message via AIM to Zerzax Send a message via MSN to Zerzax
Default

I think he means, do you have other locusted dummy units acting as collision missiles in your map? Do you already have something set up for this kind of thing? Coding the projectile could be kind of fun, might be good practice. I would see two ways to code the movement of the projectile:

A parabola that's been parametrized into x(t), and y(t), and z(t) functions, and you can fit "t" into whatever time interval to make it go faster or slower.

Use basic kinematic equations from physics with some fixed acceleration, speed, and projection and facing angles, checking for terrain height and unit flying heights.

The colliding with units could be done in the way Vexorian has it set up in his XE system, an enumeration over an area about twice as large as you want to detect units so that fewer gaps in the area occur at each enumeration.
__________________
Some Quotes of Worthy Wisdom:

1. Die - D2 Barbarian
2. Time to Die - D2 Barbarian
3. Too Much Baggage! - D1 Warrior
4. I Gotta Pawn Some of This Stuff! - D1 Warrior
Zerzax is offline   Reply With Quote