Update: CC - SpoonLib - Mouse Up (abw1ga2etc.js) 26 bytes modified
parent
5050e1f1d3
commit
b8d76387c9
|
@ -15,11 +15,13 @@ this.animationSystem.start();
|
||||||
|
|
||||||
var currentRotation = this.cylinder.rotation.x;
|
var currentRotation = this.cylinder.rotation.x;
|
||||||
|
|
||||||
var remainder = currentRotation % 0.4488;
|
var number = 0.4488 * 2;
|
||||||
|
|
||||||
|
var remainder = currentRotation % number;
|
||||||
|
|
||||||
var integer = Math.floor(currentRotation);
|
var integer = Math.floor(currentRotation);
|
||||||
|
|
||||||
var result = 0.4488 - remainder;
|
var result = number - remainder;
|
||||||
|
|
||||||
console.log('current rotation: ' + currentRotation + ' remainder : ' + remainder + ' integer : ' + integer + ' result: ' + result);
|
console.log('current rotation: ' + currentRotation + ' remainder : ' + remainder + ' integer : ' + integer + ' result: ' + result);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue