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 |
|---|---|
| PhysicsSpace | The 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 |
|---|---|
| PhysicsSpace | The new Physics Space bound to the specified world. |