moves, unexpected events & sound

hi

i’m wondering how i should implement a moving object at best.
To have a fluent animation, i thought i should use an alpha interpolator on a path. The path is a sort of come & go due to regular collisions, and thus the path can be computed in advance. The first problem is that this movement can be interrupted at any time, but i think that won’t be really a problem. The other one is that i would like to play a sound on every collision, but how do i know when & where they take place?

How should i do? Or should i proceed another way?

There is a really good tutorial on terrain following and collision detecting at http://www.j3d.org which should get you in a good position to work stuff out…

damn, i know, the next java3d improvement could be a… CollisionListener, tadam!

…and other movement behaviors.
combined with some physics, it would make wonders!

I think the idea is that J3d is just the 3d content container. If they added the stuff you are talking about everyone would just whinge about how restrictive it was or how it didn’t work properly if you use it on a powermac running OS/2 or whatever so it’s probably not worth their while.

That is where they expect us programmers to get of our fat lazy butts and do some programming. Or get on our fat lazy butts, I suppose.