coding Shift_JIS; import Math; import Graphics3D; import graphics3d.Graphics3DFramework; // グリッドのX/Y分割数 const int X_N = 16; const int Y_N = 16; // 頂点座標を格納する配列 float vertex[ Y_N ][ X_N ][ 3 ]; // モデルのIDを格納する int model; // モデルの変形に使う時刻変数 float time = 0.0; // 1フレームごとの時間変化量 float timeStep = 0.1; // この関数はプログラム起動後に1度だけコールされる void onStart(int renderer){ // 四角形グリッド形式でモデルを生成 model = newModel(vertex, QUADRANGLE_GRID); // モデルの色設定(赤、緑、青、α値) setModelColor(model, 0, 0, 255, 255); // モデルを配置 mountModel(model, renderer); } // この関数は1秒間に数十回コールされ続ける void onUpdate(int renderer){ // 時刻変数を加算 time += timeStep; // 頂点座標の計算 for(int i=0; i