mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-27 13:11:42 +00:00
fix zero scale interior collision bug
This commit is contained in:
parent
c439b32338
commit
ad7c1cae3c
1 changed files with 2 additions and 1 deletions
|
|
@ -1000,7 +1000,8 @@ class Marble extends GameObject {
|
||||||
// var iterationFound = false;
|
// var iterationFound = false;
|
||||||
for (obj in foundObjs.filter(x -> x.go is InteriorObject || (x.go is PathedInterior))) {
|
for (obj in foundObjs.filter(x -> x.go is InteriorObject || (x.go is PathedInterior))) {
|
||||||
// Its an MP so bruh
|
// Its an MP so bruh
|
||||||
|
if (!obj.go.isCollideable)
|
||||||
|
continue;
|
||||||
var invMatrix = @:privateAccess obj.invTransform;
|
var invMatrix = @:privateAccess obj.invTransform;
|
||||||
if (obj.go is PathedInterior)
|
if (obj.go is PathedInterior)
|
||||||
invMatrix = obj.transform.getInverse();
|
invMatrix = obj.transform.getInverse();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue