Beispiel #1
0
        public override void TouchMoved(CCTouch touch)
        {
            CCPoint touchLocation = touch.Location;
            CCPoint nodePosition  = ConvertToNodeSpace(touchLocation);

            m_test.MouseMove(new b2Vec2(nodePosition.X, nodePosition.Y));
        }
Beispiel #2
0
        void onTouchMoved(CCTouch touch, CCEvent touchEvent)
        {
            CCPoint touchLocation = touch.LocationOnScreen;
            CCPoint nodePosition  = Layer.ScreenToWorldspace(touchLocation);

            m_test.MouseMove(new b2Vec2(nodePosition.X, nodePosition.Y));
        }