I can't see why a bounds3D has to be an immutable object, but fine, I can live with that. What I can't live with is that the constructer doesn't work. You might say it works, but it just doesn't. If you do this: dim b as new Bounds3d(New Vector3D(2,3,4),5) break You'll get a nice bounds3d with type 1, radius 5, and center nil (RB2005r4, win xp (min/max nil to, but that's logical)). I'm sorry if I was rude (wich I did mean to be, as you probably understood), but I just spent a day making a collission detection system, and now the most important class isn't working. I now see that it's no big deal, cause I'll just make my own class, but I was kinda pissed.
Greetz, Maarten On 07/03/06, Joseph J. Strout <[EMAIL PROTECTED]> wrote: > > At 6:12 PM +0100 3/7/06, Maarten wrote: > > >I really can't see the reason why it's protected. > > It's conceivable that the designers of this class considered it > carefully, and had very good reasons, even if you can't see them. > (Try typing "immutable objects" into Google, or browsing a bit on > Wikipedia. You could even go to a library and read old-fashioned > books on the subject.) > > And BTW, it's not protected, it's read-only. If it were protected, > you wouldn't be able to access it at all except in a subclass. > > > I guess I'm going to have to create a new bounds every time I wan't > >to change the radius. > > That's correct. Just as you create a new string every time you want > to change the text. > > >btw, the bounds3d.center (vector3d) is NOT being set on creation. > > Yes it is. > > >If you use my above script the center ends up NIL, and there is no > >way of changing it because it also is a protected property. This > >means that you can't use the bounds3d class *at all* for spheres. I > >don't want to be rude, but it > >seems like some crappy coding to me. > > One wonders why you were in fact rude, if you didn't want to be. > There must be some crappy coding involved here, but not in REALbasic > -- I just tried it myself and it works fine for me. You might make > more progress if you spend less time insulting those whom you are > asking for help, and more time looking for errors in your code. > > > -- > > Joseph J. Strout > [EMAIL PROTECTED] > _______________________________________________ > 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> > _______________________________________________ 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>
