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 13 days ago

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule

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.