realbasic-games
[Top] [All Lists]

Clone

To: realbasic-games at lists dot realsoftware dot com
Subject: Clone
From: Craig M. <FishyRB at 98115 dot net>
Date: Fri, 8 Dec 2006 23:15:18 -0800
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-games at lists dot realsoftware dot com
Its me again, I hope this isn't getting annoying, but this list seems to be by far the best way to get help. (Thanks Guys! Maybe soon I will be able to help people)

I want to clone an object3D's subclass, but change their material (just color in this case) independently. It appears I can not use clone, but I can not find any way to copy the geometry. I can copy everything else I need (properties and such), but not the actual geometry.

I thought something like this might work, but it does the same thing as clone. Basically, when I change the color of one instance they all change.

Function Copy() As Particle
  Dim p As new Particle

//Copy Properties from me to p here

  Dim i As Integer
  for i=0 to ShapeCount-1
    p.AddShapeFromHandle GetShapeHandle(i)
  next
  Return p
End Function


What can I do?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>