two small newbie questions. cheers :) 2004-03-31 - By Lucas Meijer
Back > Could someone explain what the difference between these two lines of > code are? > > Scene.model[1].transform.rotate(10,10,10) > > And > > Scene.model[1].rotate(10,10,10)
The latter is a shortcut for the first.
> I?m trying to get my head round the transform object and don?t get this. > They both appear to do exactly the same thing.
They do.
> Another thing I puzzle over is the fact that I can type scene.model[1] > and scene.model(?mybox?) and refer to the same object. > > How does this model[1] / camera[1] thing work???
You can access model objects (or shaders,cameras,modelresources,motions,textures) either trough their name, or trough their index. Almost always you access them by their name, unless you loop trough all of them.
Bye, Lucas __ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
|
|