public override void TouchMoved(CCTouch touch) { CCPoint touchLocation = touch.Location; CCPoint nodePosition = ConvertToNodeSpace(touchLocation); m_test.MouseMove(new b2Vec2(nodePosition.X, nodePosition.Y)); }
void onTouchMoved(CCTouch touch, CCEvent touchEvent) { CCPoint touchLocation = touch.LocationOnScreen; CCPoint nodePosition = Layer.ScreenToWorldspace(touchLocation); m_test.MouseMove(new b2Vec2(nodePosition.X, nodePosition.Y)); }