CreateBody
Create a body using the PhysicsBodyDefinition.defaultDefinition in the world. See PhysicsBody.Create.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
CreateBody()
Create a body using the PhysicsBodyDefinition.defaultDefinition in the world. See PhysicsBody.Create.
public PhysicsBody CreateBody()
Returns
Type | Description |
|---|---|
| PhysicsBody | The created body. |
CreateBody(PhysicsBodyDefinition)
Create a body in the world. See PhysicsBody.Create.
public PhysicsBody CreateBody(PhysicsBodyDefinition definition)
Parameters
The body definition to use.
Returns
Type | Description |
|---|---|
| PhysicsBody | The created body. |