Hi Alex,

  Unfortunately I don't have any java sample code handy, but I had written a
small cpp class that would align an object with the poly that it collides
with. In order to "groundClamp" without any sudden changes of the model's
orientation when you drive across polygons, you would need 3 down line
segments. To get started, you could use 1 line segment and use the polygon's
Vertex coordinates to align your self. (This wont look right when you go
from one poly to the other, because there will be a sudden change in the
model's orientation; but not a bad place to start) I have attached a .cpp
and .h file that uses a VecMath library similar to Java3D's. I hope this
help you out a bit,

Take Care,
--------------------------------------------------------------------------
Syrus Mesdaghi              Fullsail Real World Education
3D Gaming instructor      Winter Park, FL
[EMAIL PROTECTED]       www.fullsail.com
--------------------------------------------------------------------------




----- Original Message -----
From: "Alexis Dallemagne" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 03, 2001 8:00 AM
Subject: [JAVA3D] physical engine?


> Hi Folks,
>
> I am not often posting stuff... Anyway I have quite a hard issue for me.
> After having generated a world ade of several components. I would like to
> let a car run on it.
> Obviously it is a question of physical engine. I have solve all the
> equations involved in this issue.
> Theorically what i want to do must be a "classic" problem, just search the
> vector normal to the world's local surface directly under the car, then
> change the car's orientation according to this vector.
> Quite easy to say, but not that easy to code!
> I have red the picking classes must be very useful. Anybody has an example
> similar to this?
>
> thank you all.
>
> Alexis
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff JAVA3D-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

SampleBehavior.h

SampleBehavior.cpp

Reply via email to