Line Problem

"Willian Filus" <[email protected]> Fri, 7 Jan 2005 00:47:58 -0200
Newsgroups gmane.comp.breve
Message-ID <[email protected]>
I am not obtaining to draw a line between two balls, somebody I could give
an aid to me

 

@use Control.

@use Mobile.

@use Real.

 

 

Controller Teste.

 

Control : Teste {

            + variables:

                        theBall (object).

                        theBall2 (object).

                        theBall3 (object).

                        

 

            + to init:

                        theBall = new Ball.

                        theBall2 = new Ball2.

                        theBall3 = new Ball3.

                        

                        self point-camera at (0, 0, 0) from (0, 0, 5.0).

                                               

                        self enable-lighting.

                        

                        self move-light to (10, 10, 10).

                        

}

 

Mobile : Ball {

            + to init:

                                               

                        self move to (0, 0, 0).

                        

                        self set-color to (1.0, 0.0, 0.0).

                        self set-shape to (new Sphere init-with radius .1).

                        self add-line to Ball2 with-color (1.0, 1.0, 0.0).

 

                        

                                   

}

            

Mobile : Ball2 {

            

            + to init:

                                               

                        self move to (0.5, 0, 0).

                        

                        self set-color to (0.0, 1.0, 0.0).

                        self set-shape to (new Sphere init-with radius .1).

                        

}

 

Mobile : Ball3 {

            + to init:

                        

                        self move to (1.0, 0, 0.0).

                        

                        self set-color to (0.0, 0.0, 1.0).

                        self set-shape to (new Sphere init-with radius .1).

}

            

 

The error is 

 

Unknown Symbol Error: Unable to locate variable "Ball2" for object "Ball" at
lin

e 39 of file "demos\Lines\simulation.tz"

 

somebody could send me an example of the use of lines

 

 

Best regards,

 

Willian

_______________________________________________
breve mailing list
[email protected]
http://lists.spiderland.org/mailman/listinfo/breve