POV-Ray : Newsgroups : povray.binaries.animations : read / write array's from / to disc ? Server Time
2 May 2024 17:31:50 EDT (-0400)
  read / write array's from / to disc ? (Message 1 to 2 of 2)  
From: Blua Tigro
Subject: read / write array's from / to disc ?
Date: 28 Nov 2010 08:45:00
Message: <web.4cf25c08511046f7e841f8d60@news.povray.org>
i cut and paste a part of a example
to move 1 bal whit phisics

but how do you do this
whit a array of bal's ?


Post a reply to this message


Attachments:
Download 'item.txt' (1 KB)

From: Le Forgeron
Subject: Re: read / write array's from / to disc ?
Date: 28 Nov 2010 09:49:24
Message: <4cf26bf4$1@news.povray.org>
Le 28/11/2010 14:41, Blua Tigro nous fit lire :
> i cut and paste a part of a example
> to move 1 bal whit phisics
> 
> but how do you do this
> whit a array of bal's ?

With a loop:
//assuming Position & Velocity are arrays
#local idx=0;
#while (idx < dimension_size(Position,1))
#write (Previous, Position[idx],",",Velocity[idx],"\n");
#local idx=idx+1;
#end


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.