From: anne001 Date: 2006-03-25T19:43:53+09:00 Subject: Re: meaning of *array I used it with opengl. Opengl fx expect arrays of 3 or 4 vectors (location of points in space, color, etc) so I entered my data in arrays scale=[2.0, 0.3, 1.0] translation=[0.0, 0.0, 0.0] jointP = [-scale[0]/2, 0, 0] rotation = [$elbow, 0.0, 0.0, 1.0] draw = proc { GLUT.WireCube(1.0)} lowerarm= Node.new(scale,translation, jointP, rotation,&draw) def initialize(scale, translation, jointP, rotation, &draw) @children = [] @scale = scale @Translation = translation @jointP = jointP @rotation = rotation @draw = draw end but then when I called GL functions, I had to use * def applytransform GL.PushMatrix(); GL.Translate(*@Translation); if @parent != nil GL.Translate(*@parentjointP); end GL.Rotate(*@rotation); GL.Translate(*@jointP.minus); end Otherwise the GL fx complained it did not get the number of parameters it wanted.