getCollisionShape method

DFShape getCollisionShape()

碰撞形状

Implementation

DFShape getCollisionShape() {
  return DFRect(this.position.x - this.size.width / 2, this.position.y - this.size.height / 2, this.size.width,
      this.size.height);
}