title: How to set the center of the actor to be the same as the center of mass of the body
body: <p>Here is a star-shaped body created with Physics Body Editor with the center of mass in the middle:</p>
  <pre><code>val bodyEditorLoader by lazy { BodyEditorLoader(Gdx.files.internal(&quot;phisics/GameBox2D.json&quot;)) }
  val starBody = createStar()
  
  private fun createStar(): Body {
      val bodyDef = BodyDef().apply {
          type = BodyDef.BodyType.DynamicBody
          position.set(
              mainLayoutUtil.getSizeW(700f),
              mainLayoutUtil.getSizeH(350f),
          )
      }
      val body = WorldUtil.world.createBody(bodyDef)
  
      val fixtureDef = FixtureDef().apply {
          restitution = 0.7f
          density = 1f
      }
  
      bodyEditorLoader.attachFixture(body, &quot;Star&quot;, fixtureDef, 10f)
  
      return body
  
  
  
  &quot;rigidBodies&quot;: [
  {
    &quot;name&quot;: &quot;Star&quot;,
    &quot;imagePath&quot;: &quot;../star.png&quot;,
    &quot;origin&quot;: {
      &quot;x&quot;: 0.5,
      &quot;y&quot;: 0.5,
    },
  }
  ...
  ]
  </code></pre>
  <p>The image that needs to display the body data:</p>
  <pre><code>private val starImage = Image(SpriteManager.GameRegion.STAR.region)
  </code></pre>
  <p>Image rendering method according to body data:</p>
  <pre><code>override fun render(delta: Float) {
      super.render(delta)
      WorldUtil.update(delta)
      WorldUtil.debug(viewport.camera.combined)
  
      renderStar()
  }
  
  private fun renderStar() {
      starImage.apply {
  
          x = starBody.???
          y = starBody.???
          setOrigin(starBody.???)
  
          rotation = Math.toDegrees(starBody.???).toFloat()
      }
  }
  </code></pre>
  <p>What body data should I use to correctly render the image according to the body data?</p>