mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
make cgl 10 load atleast
This commit is contained in:
parent
11ca7dd052
commit
0fb0a47016
2 changed files with 22 additions and 20 deletions
|
|
@ -200,6 +200,8 @@ class Mission {
|
||||||
#if (js || android)
|
#if (js || android)
|
||||||
path = StringTools.replace(path, "data/", "");
|
path = StringTools.replace(path, "data/", "");
|
||||||
#end
|
#end
|
||||||
|
if (!StringTools.endsWith(path, ".dif"))
|
||||||
|
path += ".dif";
|
||||||
if (ResourceLoader.exists(path))
|
if (ResourceLoader.exists(path))
|
||||||
return path;
|
return path;
|
||||||
if (StringTools.contains(path, 'interiors_mbg/'))
|
if (StringTools.contains(path, 'interiors_mbg/'))
|
||||||
|
|
|
||||||
|
|
@ -73,26 +73,26 @@ class CollisionEntity implements IOctreeObject implements IBVHObject {
|
||||||
if (this.transform.equal(transform))
|
if (this.transform.equal(transform))
|
||||||
return;
|
return;
|
||||||
// Speedup
|
// Speedup
|
||||||
// if (Util.mat3x3equal(this.transform, transform)) {
|
if (Util.mat3x3equal(this.transform, transform)) {
|
||||||
// var oldPos = this.transform.getPosition();
|
var oldPos = this.transform.getPosition();
|
||||||
// var newPos = transform.getPosition();
|
var newPos = transform.getPosition();
|
||||||
// this.transform.setPosition(newPos);
|
this.transform.setPosition(newPos);
|
||||||
// this.invTransform.setPosition(newPos.multiply(-1));
|
this.invTransform.setPosition(newPos.multiply(-1));
|
||||||
// if (this.boundingBox == null)
|
if (this.boundingBox == null)
|
||||||
// generateBoundingBox();
|
generateBoundingBox();
|
||||||
// else {
|
else {
|
||||||
// this.boundingBox.xMin += newPos.x - oldPos.x;
|
this.boundingBox.xMin += newPos.x - oldPos.x;
|
||||||
// this.boundingBox.xMax += newPos.x - oldPos.x;
|
this.boundingBox.xMax += newPos.x - oldPos.x;
|
||||||
// this.boundingBox.yMin += newPos.y - oldPos.y;
|
this.boundingBox.yMin += newPos.y - oldPos.y;
|
||||||
// this.boundingBox.yMax += newPos.y - oldPos.y;
|
this.boundingBox.yMax += newPos.y - oldPos.y;
|
||||||
// this.boundingBox.zMin += newPos.z - oldPos.z;
|
this.boundingBox.zMin += newPos.z - oldPos.z;
|
||||||
// this.boundingBox.zMax += newPos.z - oldPos.z;
|
this.boundingBox.zMax += newPos.z - oldPos.z;
|
||||||
// }
|
}
|
||||||
// } else {
|
} else {
|
||||||
this.transform.load(transform);
|
this.transform.load(transform);
|
||||||
this.invTransform = transform.getInverse();
|
this.invTransform = transform.getInverse();
|
||||||
generateBoundingBox();
|
generateBoundingBox();
|
||||||
// }
|
}
|
||||||
_transformKey++;
|
_transformKey++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue