gravity, force

6 replies [Last post]
guiramos
Offline
Joined: 2004-11-09

Hi there...
Can you help me here ?
I got a doubt...
:T

How can I "throw" some kind of ray in any direction looking for any surface wherever it can be.

Because I am trying to implement some kind of "force system"...

Thank you...

Alessandro Borges

Guilherme,

recomendo que vocÃª de uma olhada em livros de Geometria AnalÃ­tica, na sua livraria preferida. Um dica Ã©:

Calculo com Geometria AnalÃ­tica. L. Leithold, HARBRA;
Geometria Analitica, REIS, Genesio L. dos & SILVA, Valdir V.. LTC

Na internet tem muita coisa mas nem sempre vale a pena... Com livro o apredizado Ã© mais consistente.

ENGLISH: Books sugestion..

Alessandro

Hi wright... I think you hit it! Thank you... I am almost reaching PickTool...

But now, I have a question! How can calculate the direction vector between 2 points...
I mean, I got a coordinate right here (x,y,z) and another coordinate over there(x2, y2, z2)...

Thank you
---
[Message sent by forum member 'guiramos' (Guilherme Vieira)]

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net

---------------------------------
Yahoo! Acesso GrÃ¡tis - Internet rÃ¡pida e grÃ¡tis. Instale o discador agora!
[att1.html]

Alessandro Borges

some web reference about Analytic Geometry

Alessandro Borges wrote:

Guilherme,

recomendo que vocÃª de uma olhada em livros de Geometria AnalÃ­tica, na sua livraria preferida. Um dica Ã©:

Calculo com Geometria AnalÃ­tica. L. Leithold, HARBRA;
Geometria Analitica, REIS, Genesio L. dos & SILVA, Valdir V.. LTC

Na internet tem muita coisa mas nem sempre vale a pena... Com livro o apredizado Ã© mais consistente.

ENGLISH: Books sugestion..

Alessandro

Hi wright... I think you hit it! Thank you... I am almost reaching PickTool...

But now, I have a question! How can calculate the direction vector between 2 points...
I mean, I got a coordinate right here (x,y,z) and another coordinate over there(x2, y2, z2)...

Thank you
---
[Message sent by forum member 'guiramos' (Guilherme Vieira)]

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net

---------------------------------
Yahoo! Acesso GrÃ¡tis - Internet rÃ¡pida e grÃ¡tis. Instale o discador agora!
__________________________________________________
Converse com seus amigos em tempo real com o Yahoo! Messenger
[att1.html]

wrightmf
Offline
Joined: 2003-12-16

I'm not sure if this is what you mean, but you can create a PickTool from your current scene and set its shape arbitrarily. You could set it to be a ray cast from one point to another (or infinitely in a certain vector) and get back everything it hits with pickAllSorted()

Hope this helps.

guiramos
Offline
Joined: 2004-11-09

Hi wright... I think you hit it! Thank you... I am almost reaching PickTool...

But now, I have a question! How can calculate the direction vector between 2 points...
I mean, I got a coordinate right here (x,y,z) and another coordinate over there(x2, y2, z2)...

Thank you

guiramos
Offline
Joined: 2004-11-09

HA!!!
what do you mean with:
"create a PickTool from your current scene and set its shape arbitrarily"

You mean that I can set up any SHAPE(including 3d custom models) for a picktool ?

Gilson Laurent

Hello

> You mean that I can set up any SHAPE(including 3d custom models) for a
> picktool ? ---

No. Just subclasses of javax.media.j3d.PickShape.

Look at:
com.sun.j3d.utils.picking.PickTool.setShape(PickShape ps, Point3d startPt)

cu
[att1.dat]