[General] selective unit collision

Level 13
Joined
Sep 4, 2008
Messages
300
I was reading that the sc2 colossus unit has multiple collision layers, so it still collides with big units like other colossi, but not with smaller units. I guess wc3 works differently, so to get the same effect would require some kind of workaround.

Is there a way to use the trigger system/jass/Lua to make a unit that can pass through all other units (like windwalk) EXCEPT for units of its own type?

If not...what about a workaround like making the model really tall and messing with collision shapes on the model so that it only collides with things that have their collision shape thing at a similar height? I don't know anything about model editing, so I could be completely misunderstanding what collision shapes are.
 
Last edited:
You can play around with Aeth - Ghost (visible).
See this thread.
I ran across that thread before I made this one, but it says "ghosts can walk through ghosts," so that won't work for me. I need something like "ghosts can't move through each other."

Also, ghosts can only have units pass through them, but can't actively move through other units (besides ghosts).

The collision shape that you do in modeling is purely in order to determine how easy it is to click/box select the unit, it's independent from the collision size of the ingame unit per se
Ah, I see, thanks for the clarification.


Anyone else know if there's any JASS or Lua functions that might be helpful here? 🥺
 
Back
Top