| Parameter | Description |
|---|---|
| shapes | The shapes to set the definition on. |
| definition | The definition 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 shape definition on a batch of shapes by writing all of its properties to each shape, as PhysicsShape.definition would.
This is faster than setting PhysicsShape.definition on each shape. Writing every property is slower than setting only the properties you need, so this is best kept out of per-frame code. See PhysicsShape.definition.