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.
- Listed in Items, inventory and logic
- Derived types
ContactProjectile,Arrow,BreakOnImpact,DiggingImpactor,Embeddable,Projectile
Methods
| Member | What 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. |