setBody method

void setBody(
  1. Body body
)

Set the cpBody this shape is connected to. Can only be used if the shape is not currently added to a space.

Implementation

void setBody(Body body) => _shape.setBody(body);