Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CastShape(CastShapeInput, out PhysicsShape)

Calculate if a cast shape intersects the chain. See PhysicsQuery.CastShapeInput and PhysicsQuery.CastResult.
Read time 1 minuteLast updated 12 days ago

Definition

CastShape(CastShapeInput, PhysicsShape)

public PhysicsQuery.CastResult CastShape(PhysicsQuery.CastShapeInput input, out PhysicsShape chainSegmentShape)

Parameters

The cast shape input used to check for intersection.

chainSegmentShape

A reference to the chain segment shape that the query found.

Returns

Type

Description

CastResultThe results of the intersection test.