Skip to main content

Description

Change the sight direction on immersive and observer views. Returns 1 in all the cases (no error management). Note: If the theta and phi angles specified match to an impossible position, the closest position is reached instead.

Syntax

object.SetSightDirection(thetaAs Double, phiAs Double) As Long
  • object: Virtual Reality Lab object
  • *theta :*angle driving the horizontal orientation (rad)
  • *phi:*angle driving the vertical orientation (rad)
Note: Theta and phi angles definitions are inverted when the method is used with immersive sensors. Note: The interval of definition of the theta and phi angles is ]-inf;inf[.

Example