Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetContactPoint(int)

Gets the ContactPairPoint at the provided index of this pair.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public ref readonly ContactPairPoint GetContactPoint(int index)

Parameters

index

The ContactPairPoint index.

Returns

Type

Description

ContactPairPointA reference or a copy of the ContactPairPoint struct at
index
.

Remarks

Can be used with the /ref readonly/ keywords to avoid copying the whole struct on the stack.