Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Create(Vector2, Vector2)

Create a Segment.
Read time 1 minuteLast updated 7 days ago

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public static SegmentGeometry Create(Vector2 point1, Vector2 point2)

Parameters

point1

The first local point.

point2

The second local point.

Returns

Type

Description

SegmentGeometryThe created geometry.