CreateBody
Create a body using the _defaultDefinition in the world. See PhysicsBody.Create.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
CreateBody()
Create a body using the _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. |