move one dynamic body relatively to other dynamic body
问题 I faced with some problem which I can't find solution for. I have swinging platform (body1) and hero (body2) standing on it. Platform is swinging so hero moving right and left on the platform. In the beginning I want hero to just stand on the platform without changing it's position relatively to platform. I achieved that by adding SKPhysicsJointFixed joining the platform and the hero. Then in some moment in the game I want hero to run along the platform which means that Y should remain the