A class in Root.Township, the global namespace.
Shape impact collector asset for skills that collects every collider within a sphere around the hit point.
Constructors
| Member | What it is |
|---|
SphereImpactCollector() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
1 private and internal field
| Member | What it is |
|---|
private float radius | Collection radius around the hit point. |
Properties
| Member | What it is |
|---|
override float SizeSquared { get; } | The radius squared. |
Methods
| Member | What it is |
|---|
override IEnumerable<Collider> CollectColliders(ImpactHitWithTool hit, LayerMask collectionLayer) | Returns the colliders on the given layers within radius of the hit point. |