Difference between revisions of "Musicboxes"
From CCRMA Wiki
m |
m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
http://whitneymusicbox.org/ | http://whitneymusicbox.org/ | ||
+ | |||
+ | http://www.amazon.com/Digital-Harmony-Complementarity-Music-Visual/dp/007070015X | ||
rotating cylinders a la astrolabes | rotating cylinders a la astrolabes | ||
spherical astrolabe | spherical astrolabe | ||
+ | |||
+ | calculate n-times rotation / min. of various diameters | ||
+ | |||
+ | public class SpinningBox : MonoBehaviour { | ||
+ | |||
+ | public float yawDegreesPerSecond = 10.0f; | ||
+ | |||
+ | // Update is called once per frame | ||
+ | void Update () { | ||
+ | Vector3 localEulers = transform.localEulerAngles; | ||
+ | localEulers.y += yawDegreesPerSecond * Time.deltaTime; | ||
+ | transform.localEulerAngles = localEulers; | ||
+ | } |
Latest revision as of 19:08, 25 August 2014
http://www.amazon.com/Digital-Harmony-Complementarity-Music-Visual/dp/007070015X
rotating cylinders a la astrolabes
spherical astrolabe
calculate n-times rotation / min. of various diameters
public class SpinningBox : MonoBehaviour { public float yawDegreesPerSecond = 10.0f; // Update is called once per frame void Update () { Vector3 localEulers = transform.localEulerAngles; localEulers.y += yawDegreesPerSecond * Time.deltaTime; transform.localEulerAngles = localEulers; }