Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CastShapes(CastShapePairInput)

Cast two shape proxies against each other. Initially touching shapes are treated as a miss. You should check for overlap first if initial overlap is required.
Read time 1 minuteLast updated 9 days ago

Definition

public static PhysicsQuery.CastResult CastShapes(PhysicsQuery.CastShapePairInput castShapePairInput)

Parameters

castShapePairInput

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

Returns

Type

Description

CastResultThe cast result.