Create(PhysicsBody, ChainGeometry, PhysicsChainDefinition)
Create a Chain of multiple shapes attached to the specified body which itself is within a world.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public static PhysicsChain Create(PhysicsBody body, ChainGeometry geometry, PhysicsChainDefinition definition)
Parameters
The body to attach the shape(s) to.
The shape geometry to use.
The shape definition to use.
Returns
Type | Description |
|---|---|
| PhysicsChain | The created shape. |