| Parameter | Description |
|---|---|
| physicsUserData | The user data to set. |
| ownerKey | Optional owner key returned when using PhysicsBody.SetOwner. |
Set PhysicsUserData that can be used for any purpose, typically by the owner only.
| Parameter | Description |
|---|---|
| bodies | The bodies to set the owner user data on. |
| userDatas | The user data to set, one entry per body. |
| ownerKey | Optional owner key returned when using PhysicsBody.SetOwner. |
Set PhysicsUserData on a batch of bodies that can be used for any purpose, typically by the owner only. The bodies and userDatas spans must be the same length; bodies[n] receives userDatas[n].
| Parameter | Description |
|---|---|
| bodies | The bodies to set the owner user data on. |
| physicsUserData | The user data to set on every body. |
| ownerKey | Optional owner key returned when using PhysicsBody.SetOwner. |
Set the same PhysicsUserData on a batch of bodies that can be used for any purpose, typically by the owner only.