Skip to main content

SphereImpactCollector

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​

MemberWhat it is
SphereImpactCollector()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

1 private and internal field
MemberWhat it is
private float radiusCollection radius around the hit point.

Properties​

MemberWhat it is
override float SizeSquared { get; }The radius squared.

Methods​

MemberWhat it is
override IEnumerable<Collider> CollectColliders(ImpactHitWithTool hit, LayerMask collectionLayer)Returns the colliders on the given layers within radius of the hit point.