Body
The first Rigidbody or ArticulationBody in the pair.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.PhysicsModule
public Component Body { get; }
Remarks
Use with the keyword to determine the actual type of the component.
asExamples
using UnityEngine;public class Example{ public Rigidbody ExtractRigidbodyFromContactPairHeader(ContactPairHeader header) { return header.body as Rigidbody; } public ArticulationBody ExtractArticulationBodyFromContactPairHeader(ContactPairHeader header) { return header.body as ArticulationBody; }}