HelloTerrainCollision.java sample does not match Help

Using the JME3 Tests template, jme3test/helloworld/HelloTerrainCollision.java, line 165 has:

player.setPhysicsLocation(new Vector3f(0, 10, 0));

where the equivalent line in Help section Landscapes/Terrain Collision has:

player.setPhysicsLocation(new Vector3f(-10, 10, 10));

The effect of running the sample code is a start below the terrain, and the player falls straight down (leaving the terrain behind). If the line from Help is used instead, the sample works as expected.

Product Version: jMonkeyEngine SDK 3.0RC2 Java: 1.7.0_01; Java HotSpot(TM) Server VM 21.1-b02 System: Windows 7 version 6.1 running on x86; MS949; ko_KR (jmonkeyplatform)
4 Likes

Thanks for the find. =)
I have updated it in svn.

1 Like