There are four options for creating a custom blot:
---------------+-------+
Inline | Block |
---------------+-------+
Embed |
---------------+-------+
Text |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
var requestAnimationFrame = window.requestAnimationFrame || (function() { | |
var timeLast = 0; | |
return window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(callback) { | |
var timeCurrent = (new Date()).getTime(), | |
timeDelta; | |
/* Dynamically set the delay on a per-tick basis to more closely match 60fps. */ | |
/* Technique by Erik Moller. MIT license: https://gist.github.com/paulirish/1579671. */ | |
timeDelta = Math.max(0, 16 - (timeCurrent - timeLast)); |
var IE = (function() { | |
if (document.documentMode) { | |
return document.documentMode; | |
} else { | |
for (var i = 7; i > 4; i--) { | |
var div = document.createElement("div"); | |
div.innerHTML = "<!--[if IE " + i + "]><span></span><![endif]-->"; | |
if (div.getElementsByTagName("span").length) { |
public class BasicEntityCollision : IEntityCollision { | |
private Vector3 size; | |
private Vector3 center; | |
// Give a bit of space between the raycast and boxCollider to prevent ray going through collision layer. | |
private float skin = .005f; | |
private LayerMask collisionMask; | |
private LayerMask playerMask; | |
public bool OnGround { get; set; } |