All shapes that belong to this body.
All shapes that belong to this body.
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 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; }