IEnumerable<PhysicsShape> Shapes { get; set; }

robot_2Generated
code_blocksInput

Description

All shapes that belong to this body.

Usage

Use the Shapes property to access all the PhysicsShape instances associated with a PhysicsBody. This can be useful for iterating over the shapes to perform operations such as modifying properties or applying transformations.

Example

// Example of iterating over all shapes in a PhysicsBody
PhysicsBody body = new PhysicsBody();
foreach (PhysicsShape shape in body.Shapes)
{
    // Perform operations on each shape
    shape.SomeProperty = newValue;
}