Making land

What’s the best way to make a terrain like that one in HelloTerrain into a collisionshape and stand on it? The HelloCollision tutorial uses the collisionshapefactory but I can’t seem to get it to run without runtime errors.

Or is there a way to convert the TerrainQuad I get into a .scene file?

Got it! basically added this to the Hello Terrain code;


HeightfieldCollisionShape sceneShape = new HeightfieldCollisionShape(heightmap.getHeightMap());

landscape = new PhysicsNode(terrain, sceneShape, 0);

landscape.setLocalTranslation(0, -100, 0);




if anyone wants the full function let me know.