文档

Unity Engine

Unity Engine

PhysicsDestructor

Provides the ability to destruct (fragment and Slice) geometry.
阅读时间1 分钟最后更新于 1 个月前

Definition

public readonly struct PhysicsDestructor : IEquatable<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.