David Medlock escribió: > Its not a bug, you didn't initialize the x,y and z members of Vector3. > > try: > > struct Vector3 > { > float x =0, y =0, z =0; > .... > } Is there a logical explanation about why floats are initialized to NAN and not zero? -- Leandro Lucarella Integratech S.A. 4571-5252