Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PhysicsDestructor

Provides the ability to destruct (fragment and Slice) geometry.
Read time 1 minuteLast updated 7 days ago

Definition

  • Type: Struct
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public readonly struct PhysicsDestructor

Static Methods

Method

Description

FragmentFragment the specified target geometry using the specified fragment points.
SliceSlice the specified target geometry using the specified slice line.

Structs

Struct

Description

PhysicsDestructor.FragmentGeometryThe polygon geometry used when fragmenting.
PhysicsDestructor.FragmentResultThe result of a fragment operation. This must be disposed of after use otherwise leaks will occur. See PhysicsDestructor.Fragment and PhysicsDestructor.Fragment.
PhysicsDestructor.SliceResultThe result of a slice operation. This must be disposed of after use otherwise leaks will occur. See PhysicsDestructor.Slice.