wsalam

ok heres my idea...

1. I would read the whole file at once and put it in the array
2. u can modify the array as u like. cause u wanted like FORWARD 10 or RIGHT
45degrees
3. pass the array in the constructor of the behavior or make a method.
4. and I think instead of making another timer now you should use alpha
inside the timer.
   So what I mean is that u know the original position and the destination
pass that to
   the Alpha. (just my suggetion)
5. For collision detection theres a demo which comes with Java3d demo

I am passing this to the disscussion group so everone could benifit. or add
something if they want

Ahmed



-----Original Message-----
From: Shahbaz Hafeez [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 14, 2000 7:12 PM
To: Ahmed Shakil
Subject: Re: [JAVA3D] Position & Rotation Interpolators - Movement
Simulation


Hello Ahmed, Assalamu alaikum,

I had a look at the maze progrm that you posted  -my knowlegde of Java3D is
limited and I dont think I could help you. I do appreciate the amount of
help you have give me so far.
I had a look at to files..you implemented the reading in from an array of
the commands, I couldnt figure out how to do that then pass it to the the
processStimulus method. Thanks.

So far I have I have got the commands being read in from a text file.
Im now working on two things at the moment:
 - Adding collision detection
 - Making the animation smoother. To do this Im thinking of adding another
timer but have it set at 100milliseconds to handle the movement between the
main movenet of the cube.. do you think this is possible? - trying to show a
smoother movement So far Ive not had any luck

How is your program going?
Shahbaz


> HEY shahbaz. salam
>
> listen up. I didnt get chance to look at the stuff. but Inshallah I will
> look at it today. you must have seen my question about makeing a dynamic
> maze by the user. so I was busy with my own problem
>
> Ahmed
>
> -----Original Message-----
> From: Shahbaz Hafeez [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 12, 2000 8:03 AM
> To: Ahmed Shakil
> Subject: Re: Re: [JAVA3D] Position & Rotation Interpolators - Movement
> Simulation
>
>
> Ahmed,
>
> the files I sent, to add, moves the box backwards to backwards to
infinity.
> by specifying absolute x, y and z coordinates as variables I can make it
> stop when it reaches a certain point on the z axis. Then from there, I
> cannot make it alter direction..
>
> I would be grateful if you could look at the code and show me how I could
do
> this,
>
> Thanks in advance,
>
>
> Shahbaz
>
>
>
> > Hello Ahmed,
> >
> > I have included with this email 2 files., so far I have got a simple
> object
> > (a colrcube) moving down the z axis. The problem is how to change
> direction
> > and ,say, move the cube once it has stopped, along the x axis..
> >
> > Your help in showing how I could do this would be much appreciated.
> >
> > The readme.txt file I have included gives a brief description on how I
> > implemented the movement.
> >
> > Regards,
> >
> > Shahbaz
> >
> >
> >
> > ----- Original Message -----
> > From: "Ahmed Shakil" <[EMAIL PROTECTED]>
> > To: "'Shahbaz Hafeez'" <[EMAIL PROTECTED]>
> > Sent: Tuesday, April 11, 2000 9:42 PM
> > Subject: RE: Re: [JAVA3D] Position & Rotation Interpolators - Movement
> > Simulation
> >
> >
> > > seems like you are not saving the previous location in a member
> variable.
> > I
> > > will have to look at the code to see whats causing that
> > >
> > > Ahmed
> > >
> > > -----Original Message-----
> > > From: Shahbaz Hafeez [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, April 11, 2000 1:32 PM
> > > To: Discussion list for Java 3D API; [EMAIL PROTECTED]
> > > Subject: Re: Re: [JAVA3D] Position & Rotation Interpolators - Movement
> > > Simulation
> > >
> > >
> > > Ahmed,
> > >
> > > I've tried using Interpolators without success, and am at the moment
am
> > > doing it as you say with my own behaviour and timer.
> > > As you have suggested, reading in the command line by line is exactly
> how
> > > I'd like to do it...so far I've only been able to move the robot in
one
> > > direction. when I try to pass another directional movent it is reset
and
> > > moves from the initial start postion.
> >
> >
>

===========================================================================
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".

Reply via email to