This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
----------------------------------------------------------------------------- | |
-- conkyrc | |
-- Date : 04/26/2019 | |
-- Author : Drew | |
-- Conky : >= 1.10 | |
-- License : Distributed under the terms of GNU GPL version 2 or later | |
----------------------------------------------------------------------------- | |
conky.config = { | |
background = true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* I needed to counter sensor drift on the device input camera control. I did it using cordova-plugin-gyroscope as a trigger. | |
* This helps to stop the camera moving when the device isn't moving. | |
* | |
*/ | |
import { Quaternion, ICameraInput, CameraInputTypes, Tools, Nullable } from 'babylonjs'; | |
import { UserDeviceOrientationCamera } from './babylon.userdeviceOrientationCamera'; | |
/** | |
* Takes information about the orientation of the device as reported by the deviceorientation event to orient the camera. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* I needed to add a function to a camera, so i copied a camera from babylonjs source and added the functionality i needed. | |
*/ | |
import { Quaternion, FreeCamera, Vector3, Scene, Axis } from 'babylonjs'; | |
// We're mainly based on the logic defined into the FreeCamera code | |
/** | |
* This is a camera specifically designed to react to device orientation events such as a modern mobile device | |
* being tilted forward or back and left or right. |