跳转至

GetHighest

格式

GetHighest(x, z)

简介

获取x,z坐标点最高方块的y值。

返回值

名称 类型 描述
y float y值

实例

按下鼠标左键时打印x为0,z为0坐标点最高方块的y值。

import fg
import wx

asset = fg.AssetCreate()
asset.name = 'Main Scene'
asset.state = fg.STATE.VOXMODEL
asset.vmFile = 'mainScene'
asset.icon='icon.png'

fg.AssetRegister(asset)

def onmouse(self, stamp, button, action, mods):
    if button==wx.MOUSE_BUTTON.LEFT and action==wx.ACTION.PRESS:
        print(wx.GetHighest(0, 0))

fg.AssetSetMouseButtonCBFunc(asset, onmouse)