mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-03 17:38:30 +00:00
fix thrusters
This commit is contained in:
parent
3af11df2ff
commit
bec73df7e4
@ -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));
|
||||
|
@ -234,4 +234,4 @@ namespace QSB.Syncs.RigidbodySync
|
||||
return (AttachedObject as OWRigidbody).GetVelocity() - pointVelocity;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user