Merge branch 'master' of https://github.com/esengine/ecs-framework
This commit is contained in:
5
source/src/Debug/Console/DebugConsole.ts
Normal file
5
source/src/Debug/Console/DebugConsole.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
module es {
|
||||
export class DebugConsole {
|
||||
public static Instance: DebugConsole;
|
||||
}
|
||||
}
|
||||
@@ -35,12 +35,14 @@ module es {
|
||||
|
||||
// 获取任何可能在新位置发生碰撞的东西
|
||||
let neighbors = Physics.boxcastBroadphase(this._collider.bounds, this._collider.collidesWithLayers.value);
|
||||
for (let neighbor of neighbors){
|
||||
if (this._collider.overlaps(neighbor) && neighbor.enabled){
|
||||
didCollide = true;
|
||||
this.notifyTriggerListeners(this._collider, neighbor);
|
||||
if (neighbors.length > 0)
|
||||
for (let i = 0; i < neighbors.length; i ++) {
|
||||
const neighbor = neighbors[i];
|
||||
if (this._collider.overlaps(neighbor) && neighbor.enabled){
|
||||
didCollide = true;
|
||||
this.notifyTriggerListeners(this._collider, neighbor);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return didCollide;
|
||||
}
|
||||
|
||||
@@ -266,7 +266,7 @@ module es {
|
||||
* @returns
|
||||
*/
|
||||
public findEntitiesOfComponent(...types): Entity[] {
|
||||
return this.entities.findEntitesOfComponent(...types);
|
||||
return this.entities.findEntitiesOfComponent(...types);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -311,7 +311,7 @@ module es {
|
||||
* @param types
|
||||
* @returns
|
||||
*/
|
||||
public findEntitesOfComponent(...types: any[]): Entity[] {
|
||||
public findEntitiesOfComponent(...types: any[]): Entity[] {
|
||||
let entities = [];
|
||||
if (this._entities.length > 0) {
|
||||
for (let i = 0, s = this._entities.length; i < s; i++) {
|
||||
|
||||
@@ -178,13 +178,6 @@ module es {
|
||||
case EaseType.quadInOut:
|
||||
return Easing.Quadratic.easeInOut(t, duration);
|
||||
|
||||
case EaseType.quadIn:
|
||||
return Easing.Quadratic.easeIn(t, duration);
|
||||
case EaseType.quadOut:
|
||||
return Easing.Quadratic.easeOut(t, duration);
|
||||
case EaseType.quadInOut:
|
||||
return Easing.Quadratic.easeInOut(t, duration);
|
||||
|
||||
case EaseType.quintIn:
|
||||
return Easing.Quintic.easeIn(t, duration);
|
||||
case EaseType.quintOut:
|
||||
|
||||
Reference in New Issue
Block a user