title: how can i rotate a body with a tween?
body: <p>i'm trying rotate a body that i had created, but it's appear rotated when refresh the page, i use matter js (<a href="http://brm.io/matter-js/" rel="nofollow noreferrer">http://brm.io/matter-js/</a>) and tween js (<a href="https://www.createjs.com/tweenjs" rel="nofollow noreferrer">https://www.createjs.com/tweenjs</a>), matter js don't has tween, so for that reasson i used tween js, but don´t works correctly</p>
  
  <pre><code>$(document).ready(function() {
      //walls
      barra_izquierda_vaso_moleculas = Bodies.rectangle(200,200,10,200,{isStatic: true});
      barra_derecha_vaso_moleculas = Bodies.rectangle(500,200,10,200,{isStatic: true});
      barra_inferior_vaso_moleculas = Bodies.rectangle(350,300,300,10,{isStatic: true});
  
     //construction of my body
     vaso_moleculas = Body.create({
        parts: [barra_izquierda_vaso_moleculas, barra_derecha_vaso_moleculas, barra_inferior_vaso_moleculas],
        restitution: 0,
        friction: 0,
        frictionStatic: 0,
        frictionAir: 0,
        inertia: Infinity,
        mass: 1,
        isStatic: true,
     });
  
     // add to world
     World.add(world, vaso_moleculas);
  
     //tween
     createjs.Tween.get(vaso_moleculas).to(2, 9000);
  });
  </code></pre>