Skip to main content

ImpactDetectorColliderModifier

A class in Root.Township, Alta.Impact.

Component on a collider that changes how hits on it are treated, through a list of ColliderModifierSettings.

Constructors​

MemberWhat it is
ImpactDetectorColliderModifier()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private ColliderModifierSettings[] settingsModifier settings checked in order. A hit only damages if all agree, and each can change the hit.

Methods​

MemberWhat it is
bool IsDamaging(ImpactTool tool, ContactPointStructure point)True only if every setting agrees the hit at this point should do damage.
void ModifyHit(ImpactHitWithTool hit, ContactPointStructure point)Lets each setting change the hit at this contact point.

Used in​

Members of other types that take, return or hold a ImpactDetectorColliderModifier: