setType method

void setType(
  1. BodyType type
)

The body type: static, kinematic, or dynamic. Note: if a dynamic body would have zero mass, the mass is set to one.

Implementation

void setType(BodyType type) {
  this.type = type;
}