On Apr 08, 2007, at 03:00 UTC, Eric Richards wrote:

> Ok so lets say I want 10 clones ,
> Something like this :
> for a = 1 to 10
>     virtualspace.objects.append Obj.clone
>     obj.clone.position. whatever
> next
> 
> Is this how you would do it ?

No.  This line of code creates a clone, and appends it to
virtualspace.Objects:

>     virtualspace.objects.append Obj.clone

Then the next line creates another clone, and does whatever with its
position:

>     obj.clone.position. whatever

I'm pretty sure that's not what you want.  You'd instead do something
like this (inside the loop):

  Dim newbie As Element3D = Obj.Clone
  virtualspace.Objects.Append newbie
  newbie.Position. whatever

> How do I know clone 1 from clone 2 etc.. ?

Keep references to them, I would suppose.  (It really depends on what
you mean by that.)

Best,
- Joe

--
Joe Strout -- [EMAIL PROTECTED]
Verified Express, LLC     "Making the Internet a Better Place"
http://www.verex.com/

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to