• 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.

Reducing Collission Size

Status
Not open for further replies.
Level 20
Joined
Aug 13, 2013
Messages
1,696
Reducing collision of the unit will work IF the another unit that you can pass through is no collision at all. Like this:

The Footman has a collision of 31.00 and you try to set it to 0.00 collision size then he want to pass through to ghoul ( undead unit ) that has 31.00 collision. After that, the footman can't pass through to the ghoul because ghoul has 31.00 collision size even the footman has 0.00 collision size. You can pass through the footman unit in the ghoul unit IF their collision sizes is equal to 0.00 or 1.00 ( but when I tried spawning units with 0.00 collision sizes it is working tho. )
 
Of course... That's logical you know since collision between objects are taken from the collision sizes of both units...

so setting 1 unit's size to 0 will mean that you can make that unit's origin (since collision size is normally centered at the origin) reach into the border of the other unit's collision, but never within the border...

maybe that's why you thought it wasn't working...
 
Level 12
Joined
Mar 13, 2012
Messages
1,121
jakeZincs explanation might be logical but its wrong. Collision size as the radius of a circle is used for various things (attack ranges, AoE spells).
Pathing however uses a rectangle and not a circle. The size of the rectangle is loosely correlated to collision size but even with collision size 0 the rectangle still has a small area.

Turning pathing off disables the rectangle for all kinds of things (units, items, terrain, doodads, map borders)
 
jakeZincs's theory is not logical. So windwalk would never work ?0o

After a unit gets spawned or revived, it gets back it's original collosion. So you have to set it via trigger after each spawn.

And object editor cant set it to 0 anyway, it bugs.

Edit:
*it bugs because it's reset to it's original collosion after creation
 
Last edited:
Status
Not open for further replies.
Top