Математика |
Программа эффекта |
|
--member(whichCastmember).model(whichModel).clone(cloneName) --Description --3D command; creates a copy of the model, group, light, or camera and all of its children. The clone shares the parent of the model, group, light, or camera from which it was cloned.
--A clone of a model uses the same model resource and is assigned the same shaderList as the original model.
--If you do not specify the cloneName, or if you specify "", the clone will not be counted by the count method, but it will appear in the scene.
--Parameters --cloneName Required. Specifies the name of the new clone.
--Example --This statement creates a clone named Teapot2 from the model named Teapot, and returns a reference to the new model.
--teapotCopy = member("3D World").model("Teapot").clone("Teapot2")
global a --property n6,n7,n8,n9 on beginsprite me my = sprite(me.spriteNum).member my.resetWorld() a=0 --Sphere01 my.newTexture("backdrop", #fromCastmember, member("sky")) my.camera(1).insertBackdrop(1,my.texture("backdrop"), point(0,0), 0) member("my").model("Sphere01").clone("Sphere2") end
on exitFrame me -- if (a=1) then
member("my").model("Sphere01").translate(1,0,0,#world) end if
go the frame
end
|
|