MapGroundManager

初始化地图地形管理器

关系

Implements

MapGroundManager Implements IMapGroundManager

实现接口: IMapGroundManager

构造函数

MapGroundManager

初始化地图地形管理器

new MapGroundManager(scene, option?)

参数

返回:MapGroundManager MapGroundManager对象

属性

ground

地图地形

ground: IMapGround

类型: IMapGround

scene

场景实例

scene: IScene

类型: IScene

访问器

获取碰撞检测类型

get navigationConstraint(): "stay-above" | "none"

返回: "stay-above" | "none" 获取碰撞检测类型

设置碰撞检测,是否可以穿透地面和模型

set navigationConstraint(value: "stay-above" | "none"): void

参数

  • value: "stay-above" | "none"

返回: void

方法

add

地图地形添加图层

add(layer): void

参数

  • layer: ILayer 地图地形图层

返回:void

initGround

初始化地形

initGround(option): MapGround

参数

  • option: string | MapGround 地形配置选项

返回:string | MapGround | Ground

remove

删除地图地形图层

remove(layer): void

参数

  • layer: string | ILayer 地图地形图层或图层ID

返回:void

BIMFlux AI