NonDamagingCollider
A class in Root.Township, Alta.Impact.
Collider modifier asset that makes hits on its colliders non-damaging, while they still register as hits.
- Listed in Items, inventory and logic
- Inherits or implements
ColliderModifierSettings - Attributes
CreateAssetMenu - Documented in Impacts and hit detection
Constructors
| Member | What it is |
|---|---|
NonDamagingCollider() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Methods
| Member | What it is |
|---|---|
override bool IsDamaging(ImpactDetectorColliderModifier modifier, ImpactTool tool, ContactPointStructure point) | Always false. |
override void ModifyHit(ImpactDetectorColliderModifier modifier, ImpactHitWithTool hit, ContactPointStructure point) | Does nothing. |