mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix zero scale interior collision bug
This commit is contained in:
parent
ef9e235269
commit
4065f089ad
1 changed files with 2 additions and 1 deletions
|
|
@ -765,7 +765,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