This file contains 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.test = function() { | |
var embeded = true; | |
}; |
This file contains 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() { | |
var privateVar = 5; | |
Crafty.c('NewComponent', { | |
publicPropertyA: null, | |
publicPropertyB: 33, | |
init: function(){ |
This file contains 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
SAT: function(poly1, poly2) { | |
var points1 = poly1.points, | |
points2 = poly2.points, | |
i = 0, l = points1.length, | |
j, k = points2.length, | |
normal = {x: 0, y: 0}, | |
length, | |
min1, min2, | |
max1, max2, | |
interval, |
This file contains 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
SAT: function(poly1, poly2) { | |
var points1 = poly1.points, | |
points2 = poly2.points, | |
i = 0, l = points1.length, | |
j, k = points2.length, | |
normal = {x: 0, y: 0}, | |
length, | |
min1, min2, | |
max1, max2, | |
interval, |
This file contains 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
var MAX_SUB_DIVISIONS = 6, | |
MAX_OBJECTS = 6, | |
results = [], //results of multiple quads | |
OBJECT = "object", | |
NULL = null, | |
mc = Math.ceil; | |
function RTree() { | |
this.root = new Box(0, 0, 1600, 800, null, 0); | |
} |
NewerOlder