DelayedImpactResolver.ImpactDetectorHit
A private struct in Root.Township, Alta.Impact. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.
One collision between an impact tool and an impact detector, stored by DelayedImpactResolver.Hit so all of a tool's hits in a frame can be compared in late update.
- Listed in Items, inventory and logic
- Nested in
DelayedImpactResolver - Attributes
IsReadOnly
Constructors
| Member | What it is |
|---|---|
ImpactDetectorHit(ImpactTool tool, ImpactDetector impactDetector, Collision collision) | Creates a DelayedImpactResolver.ImpactDetectorHit from tool, impactDetector and collision. |
Fields
4 private and internal fields
| Member | What it is |
|---|---|
private readonly ContactPointStructure[] contactStructures | Contact points of the collision, copied when the hit was stored. |
private readonly ImpactDetector impactDetector | The detector that was hit. |
private readonly ImpactTool impactTool | The tool that made the hit. |
private readonly Vector3 relativeVelocity | Relative velocity of the collision. |
Methods
| Member | What it is |
|---|---|
bool Process(ref ImpactHitWithTool bestHit) | Generates a hit for each contact point (letting collider modifiers block or change it) and keeps the most effective one in bestHit. True if this collision gave the new best. |
Used in
Members of other types that take, return or hold a ImpactDetectorHit: