我在Google VR库中使用basic4android。
我的代码是:
VrPanoramaView1.GetHeadRotation ( 180,90 As Float)
Google文档说:
GetHeadRotation(YawAndPitch()As Float)
提供与用户所在位置相对应的偏航角和俯仰角 找。
偏航是沿垂直(y)轴的旋转。
值在[-180,180]范围内,其中:
0 - looking straight at the initial image orientation. 90 - looking 90 degrees to the right. -90 - looking 90 degrees to the left. -180 or 180 - looking in the direction opposite to the initial one
pitch是沿着先前旋转的右(x)轴的旋转 偏航。值在[-90,90]范围内,其中:
0 - looking straight, level with the ground. 90 - looking up -90 - looking down
尝试编译产生了以下错误:
编译程序时出错。
错误描述:无法将类型:{Type = Double,Rank = 0,RemoteObject = False}转换为:{Type = Float,Rank = 1,RemoteObject = True}
发生在线:24 VrPanoramaView1.GetHeadRotation(180,90 As 浮动)字数:180
我做错了什么?