Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ShapeDistance(DistanceInput)

Calculate the distance and closest points between two shape proxies.
Read time 1 minuteLast updated 10 days ago

Definition

public static PhysicsQuery.DistanceResult ShapeDistance(PhysicsQuery.DistanceInput distanceInput)

Parameters

distanceInput

The input describing the shape proxies and how they should move.

Returns

Type

Description

DistanceResultThe distance result.