/** * Creates a heightfield geom. * * Uses the information in the given dHeightfieldData to construct * a geom representing a heightfield in a collision space. * * @param space The space to add the geom to. * @param data The dHeightfieldData created by dGeomHeightfieldDataCreate and * setup by dGeomHeightfieldDataBuildCallback, dGeomHeightfieldDataBuildByte, * dGeomHeightfieldDataBuildShort or dGeomHeightfieldDataBuildFloat. * @param bPlaceable If non-zero this geom can be transformed in the world using the * usual functions such as dGeomSetPosition and dGeomSetRotation. If the geom is * not set as placeable, then it uses a fixed orientation where the global y axis * represents the dynamic 'height' of the heightfield. * * @return A geom id to reference this geom in other calls. */ //ODE_API public static DGeom dCreateHeightfield( DSpace space, DHeightfieldData data, boolean bPlaceable ) { return OdeHelper.createHeightfield(space, data, bPlaceable); }
gheight = OdeHelper.createHeightfield( space, height, true );
/** * Creates a heightfield geom. * * Uses the information in the given dHeightfieldData to construct * a geom representing a heightfield in a collision space. * * @param space The space to add the geom to. * @param data The dHeightfieldData created by dGeomHeightfieldDataCreate and * setup by dGeomHeightfieldDataBuildCallback, dGeomHeightfieldDataBuildByte, * dGeomHeightfieldDataBuildShort or dGeomHeightfieldDataBuildFloat. * @param bPlaceable If non-zero this geom can be transformed in the world using the * usual functions such as dGeomSetPosition and dGeomSetRotation. If the geom is * not set as placeable, then it uses a fixed orientation where the global y axis * represents the dynamic 'height' of the heightfield. * * @return A geom id to reference this geom in other calls. */ //ODE_API public static DGeom dCreateHeightfield( DSpace space, DHeightfieldData data, boolean bPlaceable ) { return OdeHelper.createHeightfield(space, data, bPlaceable); }