Move kinematic body with SetTransform doesn't update physics

Hello,

I'm building a very simple box catching game. Boxes fall from above, user drags a platform back and forth and catches and stacks the boxes. When I use a force to move the platform the stack of caught boxes move with the platform correctly though the control method isn't correct.

If I use draggable movie clip and use it's position to set the position of the catching platform via SetTransform (or SetPositionAndAngle) the caught and stacked boxes don't move physically with the platform. The stacked boxes wake from sleep but the platform just slips underneath them. Is there a way of using SetTransform (or SetPositionAndAngle) to move a body whilst keeping the physics intact?

My code is very simple and not worth looking at but if you're interested in the update I have:

Code:

var force:b2Vec2;
var currentObject = playerArray[0];
var position:b2Vec2;
position = new b2Vec2(velocityMarker.x / world_scale,460 / world_scale);
var transformer:b2Transform;
var angle = currentObject.body.GetTransform().R
transformer = new b2Transform(position,angle);
currentObject.body.SetTransform(transformer);
Okay so I kinda have what I want working now using mouseJoints and a prismaticJoint on the player's catching platform. But I'd like to control the player's platform by clicking anywhere on the the screen and dragging not just on the platform itself. Any ideas?
I'm a bit confused by the thread title saying 'kinematic' but the rest of the thread not mentioning kinematics, as far as I can tell. I believe kinematics are intended to be moved around by setting their velocity. It should be pretty simple to find the direction from the platform's current position, and where the user clicked. Then just set the velocity of the platform to move in that direction, capped to some maximum speed. When the platform is within a certain distance from the destination, set the velocity to zero.
If you want to set the angle while 'keeping the physics intact', the same idea applies with setting the angular velocity.
I did use a kinematic body and SetLinearVelocity but it's a very poor way of representing a click and drag user interaction - just way too much lag between the user mouse position and the position of the body especially when changing direction.

I had to give up on the kinematic body approach because SetLinearVelocity or SetPosition / SetTransform wouldn't work.

I posted then that I got my control to almost work perfectly by using mouseJoint & prismaticJoint on a dynamic body but I need to allow the user to click and drag on the whole screen to move the body. So yes the original post title doesn't relate to the problem I now have.
Edited the mouseJoint script to allow click and drag anywhere. So all working now.
Most of my problems I suppose came out of using Box2D Flash for the first time.

Have to say solved most of problems with a combination of this tutorial http://blog.allanbishop.com/box2d-2-1a- ... -2-joints/ and the reference docs http://www.box2dflash.org/docs/2.1a/reference/

Original thread: https://box2d.org/forum/viewtopic.php?t=7488