RES: breve Digest, Vol 20, Issue 8

"Willian Filus" <[email protected]> Tue, 22 Mar 2005 22:04:44 -0300
Newsgroups gmane.comp.breve
Message-ID <[email protected]>
Hi John,

This is a simple sample of a simulation, I would like to move the red cube
with a mouse click to other object (blue sphere), I can move it, but I would
like to move it slowly, until the object are selected.

Thank you John, please help-me.

Willian Filus

@include "Control.tz"
@include "Mobile.tz"

Controller Main.

Control : Main {
	+ variables:
		ball2 (object).
		ball3 (object).
		ball4 (object).
		ball5 (object).
		car (object).
		
		no (object).
		no2 (object).
		no3 (object).
		no4 (object).
		no5 (object).

	+ to init:
		ball2 = new Balls.
		ball3 = new Balls.
		ball4 = new Balls.
		ball5 = new Balls.

		car = new Cars.
		car move to (-2,0,0).

		no = new Nos.
		no2 = new Nos.
		no3 = new Nos.
		no4 = new Nos.
		no5 = new Nos.

		ball2 move to (-1,0,0).
		ball3 move to (1,0,0).
		ball4 move to (-1,-2,0).
		ball5 move to (1,-2,0).
		
		self point-camera at (0, 0, 0) from (0, 0, 20).
		self enable-lighting.
		self move-light to (10, 10, 10).

		no linha de ball2 em ball3 com 4.
		no2 linha de ball2 em ball4 com 6.
		no3 linha de ball5 em ball3 com 7.
		no4 linha de ball5 em ball4 com 9.
		
	+ to click on item (object):
		
		if !item: return.
		
		car move to (item get-location).

		super click on item.
}

Mobile : Ball (aka Balls) {
	+ to init:
		self set-shape to (new Sphere init-with radius .3).
		self set-color to (0, 0, 1).
	
}

Mobile : No (aka Nos) {
	+ to init:
		self set-shape to (new Sphere init-with radius .1).
		self set-transparency to 0.0.
	
	#create a line, and a list with initial object, end object and a
edge weight.
	+ to linha de a (object) em b (object) com c (int):
		l (list).
		l = {a,b,c}.
		a add-line to b with-color (1,0,0). 
		print l.

}

Mobile : Car (aka Cars) {
	+ to init:
		self set-shape to (new Cube init-with size (0.5,0.5,0.5)).
		self set-color to (1,0,0).
}

-----Mensagem original-----
De: [email protected] [mailto:[email protected]] Em
nome de [email protected]
Enviada em: Tuesday, March 22, 2005 2:00 PM
Para: [email protected]
Assunto: breve Digest, Vol 20, Issue 8

Send breve mailing list submissions to
	[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.spiderland.org/mailman/listinfo/breve
or, via email, send a message with subject or body 'help' to
	[email protected]

You can reach the person managing the list at
	[email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of breve digest..."


Today's Topics:

   1. Moving (Willian Filus)
   2. Re: Moving (jon klein)


----------------------------------------------------------------------

Message: 1
Date: Mon, 21 Mar 2005 13:53:01 -0300
From: "Willian Filus" <[email protected]>
Subject: [breve] Moving
To: "breve" <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

I am trying to put into motion an object (sphere), enters two on spheres for
a line, but I am not obtaining, somebody can help me, I tried to use the
command sleep, but did not give certain used the command set-acceleration
but also it did not function, somebody can help me?  I am using the command
click-on so that when I click in an object the other object (sphere) go
slowly until the object that I click.

Thanks,
Willian
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.spiderland.org/pipermail/breve/attachments/20050321/d2a3c7d9/at
tachment-0001.htm

------------------------------

Message: 2
Date: Tue, 22 Mar 2005 08:46:15 -0500
From: jon klein <[email protected]>
Subject: Re: [breve] Moving
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed


On Mar 21, 2005, at 11:53 AM, Willian Filus wrote:

> Hi,
>  
> I am trying to put into motion an object (sphere), enters two on 
> spheres for a line, but I am not obtaining, somebody can help me, I 
> tried to use the command sleep, but did not give certain used the 
> command set-acceleration but also it did not function, somebody can 
> help me?  I am using the command click-on so that when I click in an 
> object the other object (sphere) go slowly until the object that I 
> click.

Hi Willian,
I'm not sure I understand the question.  Perhaps you can provide a 
sample simulation which illustrates the problem?

- jon klein


------------------------------

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


End of breve Digest, Vol 20, Issue 8
************************************

Esta mensagem foi verificada pelo E-mail Protegido Terra.
Scan engine: McAfee VirusScan / Atualizado em 21/03/2005 / Versco: 4.4.00 -
Dat 4451
Proteja o seu e-mail Terra: http://mail.terra.com.br/


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