Skip to main content

IToolHitDependant

An interface in Root.Township, Alta.Impact.

A component on an impact tool or crafting part that wants to know when the tool hits or collides with something, such as arrows or breakable items. Found automatically in the tool's children.

Methods​

MemberWhat it is
void OnCollided(Collision collision, bool isHitting, ImpactTool tool)Called when the tool's collider touches something, with whether it counts as a hit.
void OnHit(ImpactHitWithTool hit, ImpactTool tool)Called when the tool lands a hit.