Kill Shape Block reference
The Kill Shape Block defines a shape that destroys particles that collide with it. The Block destroys particles by setting their alive attribute to false.
If you change the Behavior property of the block, the Block changes to the following:
- A Collision Shape Block if you set Behavior to Collision.
- A Trigger Shape Block if you set Behavior to None.
Block compatibility
You can add the Kill Shape Block to the following Contexts:
To add a Kill Shape Block to your graph, open the graph element menu as described in Adding graph elements then select Collision > Kill Shape.
Block settings
| Property | Type | Description |
|---|---|---|
| Shape | Enum | Sets the shape for particles to collide with. For more information, refer to the Shape dropdown section. |
| Mode | Enum | Specifies how particles interact with the collider. The options are:
|
| Radius Mode | Enum | Sets the collision radius of the particles. The options are:
|
| Collision Attributes | Enum | Specifies whether Unity stores data in the collision attributes of particles. The options are:
|
Shape dropdown
| Shape | Description |
|---|---|
| Sphere | Sets the collision shape as a spherical volume. |
| Oriented Box | Sets the collision shape as a box volume. |
| Cone | Sets the collision shape as truncated cone volume. |
| Plane | Sets the collision shape as a flat plane with infinite length and width. |
| Signed Distance Field | Sets the collision shape as a signed distance field (SDF), so you can create precise complex collision with an existing asset. To generate a signed distance field asset, use the SDF Bake Tool or an external digital content creation (DCC) tool. |
Block properties
| Input | Type | Description |
|---|---|---|
| Sphere | Sphere | Sets the sphere that particles collide with. This property is available only if you set Shape to Sphere. |
| Box | OrientedBox | Sets the box that particles collide with. This property is available only if you set Shape to Box. |
| Cone | Cone | Sets the cone that particles collide with. This property is available only if you set Shape to Cone. |
| Plane | Plane | Sets the plane that particles collide with. This property is available only if you set Shape to Plane. |
| Distance Field | Signed distance field | Sets the signed distance field (SDF) that particles collide with. This property is available only if you set Shape to Signed Distance Field. |
| Field Transform | Transform | Sets the position, size, and rotation of the Distance Field. This property is available only if you set Shape to Signed Distance Field. |
| Radius | Float | Sets the collision radius of the particles. This property is available only if you set Radius Mode to Custom. |
Inspector window properties
| Property | Type | Description |
|---|---|---|
| Behavior | Enum | Specifies how particles behave when they collide with the shape. The options are:
|