fix thrusters

This commit is contained in:
Mister_Nebula 2021-07-08 00:11:49 +01:00
parent 3af11df2ff
commit bec73df7e4
3 changed files with 4 additions and 12 deletions

View File

@ -19,10 +19,9 @@ namespace QSB.Animation.Player.Thrusters
CreateThrusterFlameController(newVfx, player);
newVfx.transform.parent = player.Body.transform;
// Body isnt the actualy player body... it's the model... ;(
newVfx.transform.localPosition = new Vector3(0, 10.24412f, 2.268939f);
newVfx.transform.rotation = Quaternion.Euler(1.5f, 0, 0);
newVfx.transform.localScale = new Vector3(10, 10, 10);
newVfx.transform.localPosition = Vector3.zero;
newVfx.transform.rotation = Quaternion.Euler(0, 0, 0);
newVfx.transform.localScale = new Vector3(1, 1, 1);
// Deleted objects take 1 update to actually be deleted
QSBCore.UnityEvents.FireOnNextUpdate(() => newVfx.SetActive(true));

View File

@ -234,4 +234,4 @@ namespace QSB.Syncs.RigidbodySync
return (AttachedObject as OWRigidbody).GetVelocity() - pointVelocity;
}
}
}
}

View File

@ -107,13 +107,6 @@ namespace QSB.Syncs
return;
}
if (AttachedObject.transform.parent != ReferenceTransform && !HasAuthority)
{
DebugLog.ToConsole($"Warning - For {_logName}, AttachedObject's ({AttachedObject.name}) parent is not the same as ReferenceTransform! " +
$"({AttachedObject.transform.parent} v {ReferenceTransform.name})" +
$"Did you try to manually reparent AttachedObject?", MessageType.Error);
}
UpdateTransform();
base.Update();