0

I use basic4android in Google VR library.

My code is:

VrPanoramaView1.GetHeadRotation ( 180,90 As Float)

Google documentation says says:

GetHeadRotation (YawAndPitch() As Float)

Provides yaw and pitch angles corresponding to where the user is looking.

yaw is the rotation along the vertical (y) axis.

Values are in the [-180, 180] range where:

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 is the rotation along the right (x) axis previously rotated by yaw. Values are in the [-90, 90] range where:

0 - looking straight, level with the ground.
90 - looking up
-90 - looking down

Trying to compile produced the following error:

Error compiling program.

Error description: Cannot cast type: {Type=Double,Rank=0, RemoteObject=False} to: {Type=Float,Rank=1, RemoteObject=True}

Occurred on line: 24 VrPanoramaView1.GetHeadRotation ( 180,90 As Float) Word: 180

What am I doing wrong?

mustaccio
  • 18,234
  • 16
  • 48
  • 57

0 Answers0