Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PhysicsQuery.TimeOfImpactResult

Time-of-impact result from time-of-impact query.
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Struct
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public readonly struct PhysicsQuery.TimeOfImpactResult

Properties

Property

Description

fractionThe sweep time of the collision interval in the range [0, maxFraction].
impactStateThe impact state.
normalThe surface normal at the point of contact.
pointThe point of contact.

Structs

Struct

Description

PhysicsQuery.TimeOfImpactResult.SortAscendingOrderAscending distance sort comparer.

Enums

Enum

Description

PhysicsQuery.TimeOfImpactResult.StateDescribes the time-of-impact state.