#include "F1.inc" // F1 マシン// マシン本体 #declare MyF1 = merge { merge{ object { AeroBody pigment { color Red }} object { FrontLeg1(0) translate-0.3*z} object { RearLeg1 } object { AeroNose2 translate 0.2*z pigment { color Red }} object { AeroSide2 pigment { color Black }} object { FrontWing3 pigment { color Black }} object { RearWing3 pigment { color Black }} } // ドライバー merge { object { Driver } object { Helmet2 } object { Shield } translate 0.15*y } } // F1 マシンの配置 object { MyF1 rotate 0*y // 方向の角度 translate <-3, 0, -1> // 位置 } // 座標軸 /* object { Cylinder_X scale 0.02 pigment { color Red } } // x軸 object { Cylinder_Y scale 0.02 pigment { color Green } } // y軸 object { Cylinder_Z scale 0.02 pigment { color Blue } } // z軸 */ // 舞台 object { Ground } // 地面 sky_sphere { Sunset } // 空 // カメラ camera { location +0.03*x // 右目 location -0.03*x // 左目 rotate 0*x // 上下の首振の角度(下がプラス) translate -10*z // コース中心からの距離 rotate 30*x // 上下の移動の角度(上がプラス) rotate -45*y // 左右の移動の角度(左がプラス) angle 30 // 視野 } // 照明光源 light_source { <100, 200, -100> // 光源の位置 color White*1.0 // 色と明るさ parallel } // 背景 background { color LightBlue } //teki #declare EnemyA = merge { merge{ // F1 マシン// マシン本体 object { AeroBody pigment { color White }} object { FrontLeg1(0) translate-0.3*z} object { RearLeg1 } object { AeroNose2 translate 0.2*z pigment { color White }} object { AeroSide2 pigment { color Coral }} object { FrontWing3 pigment { color Coral }} object { RearWing3 pigment { color Coral }} } // ドライバー merge { object { Driver } object { Helmet2 } object { Shield } translate 0.15*y } } // F1 マシンの配置 object { EnemyA rotate 0*y // 方向の角度 translate <0, 0, 0> // 位置 }