This file contains hidden or 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
{ | |
fleece: golden | |
} |
This file contains hidden or 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
using UnityEngine; | |
/** | |
* Controls for a free-roaming camera with 5 degrees of freedom (rotation around z is disabled) | |
* Uses default input axes with the scroll wheel for moving up and down - Shift/Control is also a nice idea | |
*/ | |
public class CameraMovement : MonoBehaviour | |
{ | |
/** absolute rotations kept separately from the attached GameObject */ | |
private float rotationX = 0f; |
This file contains hidden or 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
/** | |
* @param string $key | |
* | |
* @return bool | |
*/ | |
public function isValidOrderKey($key) | |
{ | |
return true; | |
//TODO: ??? | |
/*if(in_array($key,$this->validOrderKeys)) { |
This file contains hidden or 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
// this is some vile monkey patching, think of it what you will, I find it useful | |
if('undefined' === typeof window.qs) { | |
window.qs = document.querySelector.bind(document); | |
} | |
if('undefined' === typeof window.qsa) { | |
window.qsa = document.querySelectorAll.bind(document); | |
} |
This file contains hidden or 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
//module ... | |
/** | |
* rotates rotationTarget around its center point depending on the mouse position | |
* CTRL key must be pressed | |
* | |
* trigonometry powers, activate! | |
* | |
* @param event MouseEvent | |
*/ |