| Parameter | Description |
|---|---|
| shapes | The shapes to set the user data on. |
| userDatas | The user data to set, one entry per shape. |
int The number of shapes that were ignored (not set because the shape was invalid). A single warning is logged when any are ignored. If the spans are different lengths, nothing is set and every shape is counted as ignored.
Set PhysicsUserData on a batch of shapes that can be used for any purpose. The shapes and userDatas spans must be the same length; shapes[n] receives userDatas[n].
| Parameter | Description |
|---|---|
| shapes | The shapes to set the user data on. |
| physicsUserData | The user data to set on every shape. |
int The number of shapes that were ignored (not set because the shape was invalid). A single warning is logged when any are ignored.
Set the same PhysicsUserData on a batch of shapes that can be used for any purpose.