| Parameter | Description |
|---|---|
| shapes | The shapes to set. |
| geometry | The geometry to set on each corresponding shape. |
int The number of shapes that were ignored (not set because the shape was invalid).
Set a batch of PhysicsShape to the corresponding CircleGeometry. The two spans must be the same length; shape[i] is set to geometry[i]. Like the single geometry setters, this updates the shape type and broadphase but does not update body mass. Call PhysicsBody.ApplyMassFromShapes on any affected body if a mass update is required. Invalid shapes or geometry in the batch are ignored. For best performance, the shapes should all be part of the same PhysicsWorld, sorted by world otherwise.
| Parameter | Description |
|---|---|
| shapes | The shapes to set. |
| geometry | The geometry to set on each corresponding shape. |
int The number of shapes that were ignored (not set because the shape was invalid).
Set a batch of PhysicsShape to the corresponding CapsuleGeometry. The two spans must be the same length; shape[i] is set to geometry[i]. Like the single geometry setters, this updates the shape type and broadphase but does not update body mass. Call PhysicsBody.ApplyMassFromShapes on any affected body if a mass update is required. Invalid shapes or geometry in the batch are ignored. For best performance, the shapes should all be part of the same PhysicsWorld, sorted by world otherwise.
| Parameter | Description |
|---|---|
| shapes | The shapes to set. |
| geometry | The geometry to set on each corresponding shape. |
int The number of shapes that were ignored (not set because the shape was invalid).
Set a batch of PhysicsShape to the corresponding PolygonGeometry. The two spans must be the same length; shape[i] is set to geometry[i]. Like the single geometry setters, this updates the shape type and broadphase but does not update body mass. Call PhysicsBody.ApplyMassFromShapes on any affected body if a mass update is required. Invalid shapes or geometry in the batch are ignored. For best performance, the shapes should all be part of the same PhysicsWorld, sorted by world otherwise.
| Parameter | Description |
|---|---|
| shapes | The shapes to set. |
| geometry | The geometry to set on each corresponding shape. |
int The number of shapes that were ignored (not set because the shape was invalid).
Set a batch of PhysicsShape to the corresponding SegmentGeometry. The two spans must be the same length; shape[i] is set to geometry[i]. Like the single geometry setters, this updates the shape type and broadphase but does not update body mass. Call PhysicsBody.ApplyMassFromShapes on any affected body if a mass update is required. Invalid shapes or geometry in the batch are ignored. For best performance, the shapes should all be part of the same PhysicsWorld, sorted by world otherwise.
| Parameter | Description |
|---|---|
| shapes | The shapes to set. |
| geometry | The geometry to set on each corresponding shape. |
int The number of shapes that were ignored (not set because the shape was invalid).
Set a batch of PhysicsShape to the corresponding ChainSegmentGeometry. The two spans must be the same length; shape[i] is set to geometry[i]. If a shape is already a chain segment, its owning chain is preserved. Like the single geometry setters, this updates the shape type and broadphase but does not update body mass. Call PhysicsBody.ApplyMassFromShapes on any affected body if a mass update is required. Invalid shapes or geometry in the batch are ignored. For best performance, the shapes should all be part of the same PhysicsWorld, sorted by world otherwise.
| Parameter | Description |
|---|---|
| shapes | The shapes to set. |
| geometry | The geometry to set on every shape. |
int The number of shapes that were ignored (not set because the shape was invalid). If the geometry is invalid, no shapes are set.
Set a batch of PhysicsShape all to the same CircleGeometry. Like the single geometry setters, this updates the shape type and broadphase but does not update body mass. Call PhysicsBody.ApplyMassFromShapes on any affected body if a mass update is required. Invalid shapes in the batch are ignored. For best performance, the shapes should all be part of the same PhysicsWorld, sorted by world otherwise.
| Parameter | Description |
|---|---|
| shapes | The shapes to set. |
| geometry | The geometry to set on every shape. |
int The number of shapes that were ignored (not set because the shape was invalid). If the geometry is invalid, no shapes are set.
Set a batch of PhysicsShape all to the same CapsuleGeometry. Like the single geometry setters, this updates the shape type and broadphase but does not update body mass. Call PhysicsBody.ApplyMassFromShapes on any affected body if a mass update is required. Invalid shapes in the batch are ignored. For best performance, the shapes should all be part of the same PhysicsWorld, sorted by world otherwise.
| Parameter | Description |
|---|---|
| shapes | The shapes to set. |
| geometry | The geometry to set on every shape. |
int The number of shapes that were ignored (not set because the shape was invalid). If the geometry is invalid, no shapes are set.
Set a batch of PhysicsShape all to the same PolygonGeometry. Like the single geometry setters, this updates the shape type and broadphase but does not update body mass. Call PhysicsBody.ApplyMassFromShapes on any affected body if a mass update is required. Invalid shapes in the batch are ignored. For best performance, the shapes should all be part of the same PhysicsWorld, sorted by world otherwise.
| Parameter | Description |
|---|---|
| shapes | The shapes to set. |
| geometry | The geometry to set on every shape. |
int The number of shapes that were ignored (not set because the shape was invalid). If the geometry is invalid, no shapes are set.
Set a batch of PhysicsShape all to the same SegmentGeometry. Like the single geometry setters, this updates the shape type and broadphase but does not update body mass. Call PhysicsBody.ApplyMassFromShapes on any affected body if a mass update is required. Invalid shapes in the batch are ignored. For best performance, the shapes should all be part of the same PhysicsWorld, sorted by world otherwise.
| Parameter | Description |
|---|---|
| shapes | The shapes to set. |
| geometry | The geometry to set on every shape. |
int The number of shapes that were ignored (not set because the shape was invalid). If the geometry is invalid, no shapes are set.
Set a batch of PhysicsShape all to the same ChainSegmentGeometry. If a shape is already a chain segment, its owning chain is preserved. Like the single geometry setters, this updates the shape type and broadphase but does not update body mass. Call PhysicsBody.ApplyMassFromShapes on any affected body if a mass update is required. Invalid shapes in the batch are ignored. For best performance, the shapes should all be part of the same PhysicsWorld, sorted by world otherwise.