テクスチャ:UVマップの操作
2011/8/22
Blender2.58
テクスチャを横にスクロールさせるサンプル
import bge
cont = bge.logic.getCurrentController()
own = cont.owner
mesh = own.meshes[0]
SPEED = 0.01
mat_id = 0
for v_index in range(mesh.getVertexArrayLength(mat_id)):
vex = mesh.getVertex(mat_id,v_index)
uv = vex.getUV()
uv[0] = uv[0]+SPEED
vex.setUV(uv)