文档

Unity Engine

Unity Engine

Create

Create a Physics Space.
阅读时间1 分钟最后更新于 23 天前

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