Hi there. As the title says: How do I remove the collision of a single unit or at least a unit type? I don't see any unit properties or upgrades that allow me to change the inner radius or the collision type.
I could think of linking a invisile dummy unit which has normal collision to my normal visile unit without collision. Then maybe the desired effect could be done by simply killing the linked dummy unit. But I have no clue how to set that up, I am no data expert https://omegle.onl/ ;)
I hope for better and simplier solutions though.. thanks!
There are some simple things to know, properties from Unit tab :
- Radius : It is a simple circle of collision. Set to 0 to reduce to minimum the chance to collide (because the mechanism doesn't work solely with this parameter).
- Collide : Categories to collide with. Uncheck all to disable collisions. I recommend to use an "Unused" category to separate to any standard unit.
- Plane Array : BE CAREFUL false friend ! It marks the unit as Ground or Air unit for the attack system.
- Separation Radius : Same as radius property but intended for the distance between same unit type (air units usually use this to spread them when idle). Set to 0 to disable it.
- Footprint : Another collision system with layers. Set to none to remove the terrain collisions. Usually used by Unit buildings.
About the kill thingy, you can create a Behavior which executes a "Search" Effect. This effect validates a filter (+ optional validators) to "detect" any other unit. If in the area, the "Search" Effect executes, for example, a "Damage" Effect to kill the source unit.
I did something like this in my project Prime Hunter, as a Shoot Them Up, I created a collision system with behaviors for missiles. If the player ship meets a missile, the behavior deals damages to the ship.
Have a nice day !
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi there. As the title says: How do I remove the collision of a single unit or at least a unit type? I don't see any unit properties or upgrades that allow me to change the inner radius or the collision type.
I could think of linking a invisile dummy unit which has normal collision to my normal visile unit without collision. Then maybe the desired effect could be done by simply killing the linked dummy unit. But I have no clue how to set that up, I am no data expert https://omegle.onl/ ;)
I hope for better and simplier solutions though.. thanks!
Hello,
There are some simple things to know, properties from Unit tab :
- Radius : It is a simple circle of collision. Set to 0 to reduce to minimum the chance to collide (because the mechanism doesn't work solely with this parameter).
- Collide : Categories to collide with. Uncheck all to disable collisions. I recommend to use an "Unused" category to separate to any standard unit.
- Plane Array : BE CAREFUL false friend ! It marks the unit as Ground or Air unit for the attack system.
- Separation Radius : Same as radius property but intended for the distance between same unit type (air units usually use this to spread them when idle). Set to 0 to disable it.
- Footprint : Another collision system with layers. Set to none to remove the terrain collisions. Usually used by Unit buildings.
About the kill thingy, you can create a Behavior which executes a "Search" Effect. This effect validates a filter (+ optional validators) to "detect" any other unit. If in the area, the "Search" Effect executes, for example, a "Damage" Effect to kill the source unit.
I did something like this in my project Prime Hunter, as a Shoot Them Up, I created a collision system with behaviors for missiles. If the player ship meets a missile, the behavior deals damages to the ship.
Have a nice day !