getSunAngle
Platform Compatibility PC Mac OSX Oculus Quest X X X Get the sun angle in X,Y,Z returns a String (text) value Example: 1obj.getSunAngle()
McMaster University Virtual Reality Simulation and Research
Articles for coding in Artspark
Platform Compatibility PC Mac OSX Oculus Quest X X X Get the sun angle in X,Y,Z returns a String (text) value Example: 1obj.getSunAngle()
Platform Compatibility PC Mac OSX Oculus Quest X X X Set the sun angle in X (or optionally X,Y,Z) Parameters: angle A string value Example: 1obj.setSunAngle(angle)
Platform Compatibility PC Mac OSX Oculus Quest X X X Try to load a 513×513 terrain image to replace terrain height values, with optional multiplier into terrain values Parameters: filename A string value scale Optional A float value Example: 1obj.loadTerrainHeightmap(filename, scale = 1f)
Platform Compatibility PC Mac OSX Oculus Quest X X X Show or hide the terrain? Parameters: _tf A boolean value Example: 1obj.showTerrain(_tf)
Platform Compatibility PC Mac OSX Oculus Quest X – X Set if VR teleporting is on Parameters: _tf A boolean value Example: 1obj.setVRTeleport(_tf)
Platform Compatibility PC Mac OSX Oculus Quest X X – Switch to the 3rd person mouse only view if not VR Example: 1obj.thirdPersonMouse()
Platform Compatibility PC Mac OSX Oculus Quest X X – Switch to the first person walk view if not VR Example: 1obj.firstPerson()
Platform Compatibility PC Mac OSX Oculus Quest X X – Switch to the first person fly view if not VR Example: 1obj.firstPersonFly()
Platform Compatibility PC Mac OSX Oculus Quest X X – Switch to the default 3rd person keyboard/controller view if not VR Example: 1obj.thirdPerson()
Platform Compatibility PC Mac OSX Oculus Quest X X X Set shadows on or off Parameters: _tf A boolean value Example: 1obj.enableShadows(_tf)