Import { path = "grFloor.x" } Import { path = "phKumaBody.x" } Import { path = "grKuma.x" } FWScene fwScene{ /* PHSolidとGRFrameとの関連付け */ FWObject fwKuma{ *soKuma // PHSolid *grFrameKuma // GRFrame } FWObject fwFloor{ *soFloor // PHSolid *grFrameFloor // GRFrame } /* PHScene内のObject */ PHScene phScene{ PHSolid soKuma{ pose = 1 0 0 0 -0.5 10 0 inertia = 10 0 0 0 1 0 0 0 10 dynamical = true *phKumaBody // link to xfile(physics model) } PHSolid soFloor{ dynamical = false *grFloor // link to xfile(physics model) } } /* GRScene内のObject */ GRScene grScene{ GRFrame grFrameKuma { *grKuma } GRFrame grFrameFloor{ *grFloor } GRLight light1 { #SprGRRender.h GRMaterialDesc ambient = 0.9 0.9 0.9 1.0 #Vec4f ambient diffuse = 0.5 0.5 0.5 1.9 #Vec4f diffuse specular = 0.1 0.1 0.1 1.0 #Vec4f specular position = 1.0 1.0 1.0 0.0 #Vec4f position range = 10000.0 #float range } } }