ドキュメント

Unity Engine

Unity Engine

PhysicsQuery.DistanceResult

Distance result from shape distance queries.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public readonly struct PhysicsQuery.DistanceResult : IEquatable<PhysicsQuery.DistanceResult>

Properties

Property

Description

distanceThe distance between the points, zero if overlapped.
iterationsThe number of iterations used in the calculation.
normalA Normal vector that points from A to B. This is invalid if the distance is zero.
pointAClosest point on shape A.
pointBClosest point on shape B.

Structs

Struct

Description

PhysicsQuery.DistanceResult.SortAscendingOrderAscending distance sort comparer.