Documentation

Unity Engine

Download Unity

Unity Engine

PhysicsQuery.ShapeSweep

Describes the motion of a shape for a time-of-impact calculation. The shape is defined with respect to the body origin.
Read time 1 minuteLast updated 2 months ago

Definition

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

Properties

Property

Description

localCOMThe local center of mass.
positionEndThe world center of mass end position.
positionStartThe world center of mass start position.
rotationEndThe world rotation end.
rotationStartThe world rotation start.