public static void doDone(BallMovingAction actionObject) { BallView entity = SceneViews.instance.getCurFBScene().ball; entity.setPosition(actionObject.targetPosition); entity.startSamplePosition = actionObject.targetPosition; }
public static void doProgress(BallMovingAction actionObject, float progress) { BallView entity = SceneViews.instance.getCurFBScene().ball; //获取本次移动位置 Vector3 thisEndPostion = MovingProcessorUtility.getMovePosition(entity.startSamplePosition, actionObject.targetPosition, progress); entity.setPosition(thisEndPostion); }