Hi,
I have made some progress on what I am trying to do - but two areas have
left me baffled.
1. Implementing a smoother movement with the use of the Alpha, within an
extended Behavior class. I cannot see how to do this within the behaviour
class (gsTimer.java).
2. I'd like to implement collision decection so that the moving object when
it comes in contact with an obstacle it stops rather than passing through
it. I've had a look at the demo of collision detection which comes with
Java3d, and I think I understand how that works but I cannot make it do what
I'd like it to.
Ive included the 3 files which Im working on at the moment and would be
grateful if anyone could show me how to implement the above. I am at a loss.
Thanks in advance,
Shahbaz
>
> 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
pit.java
FORWARD 9
RIGHT 90
FORWARD 2
RIGHT 90
FORWARD 5
RIGHT 90
FORWARD 2
LEFT 90
FORWARD 2
LEFT 90
LEFT 90
FORWARD 5
EOF
gsTimer.java