• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[General] selective unit collision

Level 12
Joined
Sep 4, 2008
Messages
296
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