| Parameter | Description |
|---|---|
| shapes | The shapes to set the callback target on. |
| callbackTarget | The callback target to set on every shape, or NULL to remove it. |
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 Object that callbacks will be sent to on a batch of shapes. Each shape is assigned the callback target as PhysicsShape.callbackTarget would, and setting it to NULL removes it.
This is faster than setting PhysicsShape.callbackTarget on each shape.