HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Physics in Warcraft (TOUGH)

01-26-2004, 09:09 PM#1
WeAllLoveHim
I was wondering if someone could help me out, I'm having a hard time reaching the concept of applying mathmatical formulas such as gravity and other physics in War3. I'm not sure if this is a challange suitable for a 14 year old, but I am in the process of creating a golf map in which the ball is hit into the air and uses actual formulas to determine where it lands and how it looks in the air (flying height). Remeber I am 14, but I have the intelligence of someone older than myself.
01-26-2004, 09:24 PM#2
Ligature
Basically the best way of dealing with this kind of thing is to give the ball a velocity in X,Y,Z vectors and have gravity, wind, spin, whatever "accelerate" the ball by periodically changing the vectors. In the case of gravity, you need only change the Z vector, and at a constant rate. Wind you can set up by having a global wind vector, probably only with X and Y components, and maybe varying its magnitude slightly (if you really want to get fussy, anyway). Topspin/Backspin is easy too - it adds to the Z vector a value proportional to the ammount of spin and the magnitude of the speed of the ball in the X and Y directions. Sidespins are a bit harder, as you have to apply the acceleration in a direction perpendicular to the ball's movement.

I dunno if maybe I'm overdoing this a bit... you might just want to do gravity, or just gravity and wind; scripting might get really laggy after a certain amount of dickering with it...
01-26-2004, 09:26 PM#3
Zap
I suppose you could do it, through a mass array of varibles, i am no triggerer - but a psyhics system would take much work, And It's bound be glicthy - or worse yet merely become chance instead of skill. Also, Detecting collison would take even more effort, and probaly would make you want to limit the amnout of doodads..
01-28-2004, 07:57 PM#4
Aznwhore
im 14 too, and i should have the same feelings as u.... i think the triggers u r trying to make aren't gonna be a snap...if i were u, i would never try it....its gonna be a huge waste of time when u make like... one mistake....
01-29-2004, 06:00 AM#5
Zarniwoop
Yes... listen, I'm 14, I'm in the math book for the 17's, but I would never do a map of that kind.
Why?
1) It's HARD!
2) It's GOLF! I hate golf!