[207, 123]
[69, 38]
[136, 84]
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
| %% Benjamin Williams <bwilliams@lincoln.ac.uk> | |
| %% jake_charts.m (GNU Octave, not MATLAB) | |
| %% | |
| %% pdflatex rendering charts for our paper, 'a somatic approach to combating | |
| %% cybersickness utilising airflow feedback' | |
| close all | |
| clear all |
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
| /** | |
| * @file ArcadeGameQuit.cs | |
| * @author Benjamin Williams <bwilliams@lincoln.ac.uk> | |
| * | |
| * @license CC 3.0 <https://creativecommons.org/licenses/by-nc-nd/3.0/> | |
| */ | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Linq; |
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
| %% Benjamin Williams <bwilliams@lincoln.ac.uk> | |
| %% Get in touch if you have any questions or problems! | |
| %% University of Lincoln Computer Science Thesis Template | |
| % The document class -- remove [harvard] if you want | |
| % numeric-style referencing. | |
| \documentclass[harvard]{lincolncsthesis} | |
| % Custom packages that you need to include | |
| \input{preamble/packages.tex} |
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
| \def\@classname {lincolncsthesis} | |
| \def\ifClassOption [#1]#2 { | |
| \@ifclasswith{\@classname}{#1}{#2}{#3} | |
| } | |
| \def\defineThesisOption [#1] { | |
| \ifClassOption [#1] { | |
| \expandafter\def \csname __thesis#1\endcsname ##1{\empty} |
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
| Shader "Custom/sail-shader" | |
| { | |
| Properties | |
| { | |
| [Header(Appearance properties)] | |
| _Color ("Color", Color) = (1,1,1,1) | |
| _TintColor ("Tint color", Color) = (1,1,1,1) | |
| _MainTex ("Albedo (RGB)", 2D) = "white" {} | |
| // _NoiseTex ("Noise Texture (RGB)", 2D) = "white" {} | |
| [KeywordEnum(Normal, Toon)] _ToonShading("Shading mode", Int) = 1 |
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
| //Make the minute and hour hands, the shapes | |
| Capsule* minuteHand = new Capsule(PxTransform(PxVec3(0, 8, 0)), PxVec2(0.1f, 2)); | |
| Capsule* hourHand = new Capsule(PxTransform(PxVec3(0, 8, 0)), PxVec2(0.1f, 1)); | |
| //Turn off gravity | |
| hourHand->Get()->setActorFlag(PxActorFlag::eDISABLE_GRAVITY, true); | |
| minuteHand->Get()->setActorFlag(PxActorFlag::eDISABLE_GRAVITY, true); | |
| //Add them to the scene | |
| Add(hourHand); |
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
| std::vector<PxVec3> verts = { | |
| // | |
| PxVec3(0, 1, 0), | |
| PxVec3(-1, -1, 1), | |
| PxVec3(1, -1, 1), | |
| // | |
| PxVec3(0, 1, 0), | |
| PxVec3(-1, -1, 1), |
Tired of writing out GetComponents<Blah>() and then GetComponentsInChildren<Blah>()? Well, here are two functions which do that for you.
To use it, just shove it in some file. Then, do transform.GetAllComponents<Blah>() and voila! You have all components of this type in a nice, enumerable format.
public static class TransformExtensions
{
public static IEnumerable<T> GetAllComponents<T>(this Transform transform)
{
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
| function get_old_selection_idx(seed) | |
| { | |
| Math.seedrandom(+seed); | |
| return Math.floor(Math.random() * 4); | |
| } |