Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Create

Create a Physics Space.
Read time 1 minuteLast updated 10 days ago

Definition

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

Create()

Create a Physics Space.
public static PhysicsSpace Create()

Returns

Type

Description

PhysicsSpaceThe new Physics Space.

Create(PhysicsWorld)

Create a Physics Space bound to the specified world so its proxies represent shapes in that world. While bound, any proxy user handle must be a live shape in this world and you can refresh the proxies from their shapes. The binding lasts for the lifetime of the space and cannot be changed.
public static PhysicsSpace Create(PhysicsWorld world)

Parameters

The world whose shapes this space's proxies will represent.

Returns

Type

Description

PhysicsSpaceThe new Physics Space bound to the specified world.

Remarks