ドキュメント

Unity Engine

Unity Engine

ChainGeometry

The geometry of a chain of ChainSegment.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public struct ChainGeometry

Constructors

Constructor

Description

ChainGeometry(System.ReadOnlySpan{UnityEngine.Vector2})Create the geometry of a chain using the specified vertices.
ChainGeometry(Unity.Collections.NativeArray{UnityEngine.Vector2})Create the geometry of a Chain using the specified vertices.

Properties

Property

Description

isValidCheck if the geometry is valid or not.
verticesGet the geometry vertices.

Methods

Method

Description

CalculateAABBCalculate the AABB of the geometry.
CastRayCalculate if a world ray intersects the geometry. See PhysicsQuery.CastResult.
CastShapeCalculate if a cast shape intersects the geometry. Initially touching shapes are treated as a miss. You should check for overlap first if initial overlap is required. See PhysicsQuery.CastShapeInput and PhysicsQuery.CastResult.
ClosestPointCalculate the closest point on this geometry to the specified point.