Skip to main content

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.

Constructors​

MemberWhat it is
ImpactDetectorHit(ImpactTool tool, ImpactDetector impactDetector, Collision collision)Creates a DelayedImpactResolver.ImpactDetectorHit from tool, impactDetector and collision.

Fields​

4 private and internal fields
MemberWhat it is
private readonly ContactPointStructure[] contactStructuresContact points of the collision, copied when the hit was stored.
private readonly ImpactDetector impactDetectorThe detector that was hit.
private readonly ImpactTool impactToolThe tool that made the hit.
private readonly Vector3 relativeVelocityRelative velocity of the collision.

Methods​

MemberWhat 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: