Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ShapeProxy

Create a shape proxy representing a single point.
Read time 1 minuteLast updated 8 days ago

Definition

  • Type: Constructor
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule

ShapeProxy(Vector2)

Create a shape proxy representing a single point.
public ShapeProxy(Vector2 point)

Parameters

point

The point to represent.

ShapeProxy(CircleGeometry)

Create a shape proxy using the specified Circle.
public ShapeProxy(CircleGeometry circleGeometry)

Parameters

circleGeometry

The geometry to use.

ShapeProxy(CapsuleGeometry)

Create a shape proxy using the specified Capsule.
public ShapeProxy(CapsuleGeometry capsuleGeometry)

Parameters

capsuleGeometry

The geometry to use.

ShapeProxy(PolygonGeometry)

Create a shape proxy using the specified Polygon.
public ShapeProxy(PolygonGeometry polygonGeometry)

Parameters

polygonGeometry

The geometry to use.

ShapeProxy(SegmentGeometry)

Create a shape proxy using the specified Segment.
public ShapeProxy(SegmentGeometry segmentGeometry)

Parameters

segmentGeometry

The geometry to use.

ShapeProxy(ChainSegmentGeometry)

Create a shape proxy using the specified ChainSegment.
public ShapeProxy(ChainSegmentGeometry chainSegmentGeometry)

Parameters

chainSegmentGeometry

The geometry to use.