Terrain following itself is pretty easy in Java3D, you can just use a pick ray through the center of your character and then see where it hits the first terrain polygon. I did that i nan early version of Java3D.

HOWEVER the next thing you will likely want (I did ) is collision with the environment. It turns out that collision and floor following can both be handled by a relatively simple physics model. Im currently using code from IMI for that. The Jar is up there with JNWN and you can see from my class called PhysicsBehavior how its used, but there is no source to the IMI code because I don't own that.

Got a question about Java and game programming? Just new to the Java Game Development Community? Try my FAQ. Its likely you'll learn something!

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org