HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unit Movement/Physics System

07-25-2006, 03:31 PM#1
Moss
Has anybody made a JASS system for moving units around (for all those knock-back and tractor-beam spells etc.)? If not perhaps I will start on one, but I would need other people's help to make sure it's all proper and effecient.

There could be many handy functions built on top of each other like one that takes an impulse force and direction and friction coeffecient and shoots a unit in that direction and it will gradually slow to a stop. Or a function that creates a gravity well at a point which constantly draws units towards it...

I am sure people have at least made these sort of functions over and over in their custom spells, so perhaps people could submit examples here or direct me to some good movement functions.
07-25-2006, 03:48 PM#2
emjlr3
there is a physics engine at wc3sear.ch its really nice too
however it is not nearyl as complicated as what u r thinking about, nor does it to height changes either( i dont think)
07-25-2006, 04:37 PM#3
iNfraNe
I've made one, its not public yet tho, same goes for anitarf. So if you want, go ahead. Try make it as fast running as possible.
07-25-2006, 06:01 PM#4
The)TideHunter(
You could use the lil search button once in a while, it saves energy.
Vile made 1, its in the JESP spells section.
http://wc3campaigns.net/showthread.php?t=82829
07-25-2006, 07:07 PM#5
emjlr3
meh that is not even close to what he is talking about, i dont think atleast
07-25-2006, 07:09 PM#6
The)TideHunter(
Quote:
Originally Posted by Moss
Has anybody made a JASS system for moving units around (for all those knock-back

He mentioned Knockback.
07-25-2006, 07:14 PM#7
emjlr3
that he did, as far as units bouncing off walls after the hit them, or running then slowly stopping, or something of that nature, mostly for projectiles I hope
07-25-2006, 07:50 PM#8
PipeDream
http://www.wc3jass.com/viewtopic.php?t=2586
but it needs to be modernized to dynamic arrays
07-25-2006, 08:16 PM#9
emjlr3
lol what on earth does that do?
07-25-2006, 08:34 PM#10
Vexorian
ODE sounds to me like Ordinary differential ecuations
07-25-2006, 09:54 PM#11
Moss
Quote:
Originally Posted by iNfraNe
I've made one, its not public yet tho, same goes for anitarf. So if you want, go ahead. Try make it as fast running as possible.

So you plan on releasing something like I am talking about? If anitarf is reading this could you comment on whatever you have made?

Quote:
Originally Posted by emjlr3
there is a physics engine at wc3sear.ch its really nice too
That one is pretty funky but all gui and leaky and apparently useless according to it's creator.

Quote:
Originally Posted by The)TideHunter(
Vile made 1, its in the JESP spells section.
That looks like a good start and has it's uses. I am really just interested in some barebones functions that move units or groups of units and have some options for collisions with other units, destructibles, cliffs etc.. But the water and dust effects are a cool touch.

Quote:
Originally Posted by PipeDream
http://www.wc3jass.com/viewtopic.php?t=2586
but it needs to be modernized to dynamic arrays
Could you use that to create orbits and stuff? I'm not sure if it is useful for what I am talking about.

I may not actually program this system on account of laziness and busyness and the feeling that many people on here could do it faster and better than me. But if people feel like this would be a useful or even just fun endeavor perhaps we could make one as a group effort and coordinate it in this thread.

The first step would be a function that takes a unit, reals for speed, direction and time interval, and a real for duration or distance. I'm not really sure what all the possibilities are for special effects and collision detection and reaction. The time interval could also beset as a global/constant. I guess this would be called the Unit Sliding system or something. Sliding is the technical term for gradual movent isn't it. Anyhoo, I should shut up before someone tells me all my ideas have been done already
07-25-2006, 10:02 PM#12
iNfraNe
Quote:
Originally Posted by Moss
So you plan on releasing something like I am talking about? If anitarf is reading this could you comment on whatever you have made?
Anitarf has recently made a great system for a map we were making which is really good for doing physics for downhill skiing maps.

My system is a bit less specific and has inbuild functions like.. What will happen if something hits the ground after flying, what if it dies (so you can use a timed life without having a massive amount of triggers), what if it collides with something in range, matching some conditions etc. Apart from that you can easily import and change constant forces, like wind and gravity. All changable with the vector system made by Anitarf (has not yet been released also).

But then again, I'm not sure if I'll ever been pleased enough to release this at all, so if you want you could always make your own system and release that. I'm just telling you some functionalities you might want to consider adding :)
07-26-2006, 03:59 AM#13
illidan92
Quote:
Originally Posted by emjlr3
there is a physics engine at wc3sear.ch its really nice too
however it is not nearyl as complicated as what u r thinking about, nor does it to height changes either( i dont think)
Could u gimme the link to the physics engine... :D
07-26-2006, 05:58 AM#14
Jazradel
I vaguely made one for my waterpolo map. Pretty dodgy and all, but you might want to have a look.
Attached Files
File type: w3x(12)Waterpolo.w3x (144.3 KB)
07-26-2006, 08:48 AM#15
Moss
Quote:
Originally Posted by illidan92
Could u gimme the link to the physics engine... :D

http://www.wc3sear.ch/index.php?p=Spells&ID=797&sid=