mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
parent
df58799656
commit
c9c0753486
@ -84,7 +84,6 @@ public class JellyfishTransformSync : UnsectoredRigidbodySync, ILinkedNetworkBeh
|
||||
AttachedRigidbody.SetRotation(ReferenceTransform.FromRelRot(transform.rotation));
|
||||
AttachedRigidbody.SetVelocity(ReferenceRigidbody.FromRelVel(Velocity, pos));
|
||||
AttachedRigidbody.SetAngularVelocity(ReferenceRigidbody.FromRelAngVel(AngularVelocity));
|
||||
DebugLog.DebugWrite($"{this} APPLY TO ATTACHED");
|
||||
}
|
||||
|
||||
protected override void OnRenderObject()
|
||||
|
@ -1,27 +1,13 @@
|
||||
using Cysharp.Threading.Tasks;
|
||||
using QSB.JellyfishSync.Messages;
|
||||
using QSB.JellyfishSync.Messages;
|
||||
using QSB.JellyfishSync.TransformSync;
|
||||
using QSB.Messaging;
|
||||
using QSB.Utility;
|
||||
using QSB.Utility.LinkedWorldObject;
|
||||
using System.Threading;
|
||||
using UnityEngine;
|
||||
|
||||
namespace QSB.JellyfishSync.WorldObjects;
|
||||
|
||||
public class QSBJellyfish : LinkedWorldObject<JellyfishController, JellyfishTransformSync>
|
||||
{
|
||||
public override async UniTask Init(CancellationToken ct)
|
||||
{
|
||||
await base.Init(ct);
|
||||
|
||||
if (QSBCore.IsHost)
|
||||
{
|
||||
AttachedObject._upwardsAcceleration *= 10;
|
||||
AttachedObject._downwardsAcceleration *= 10;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool ShouldDisplayDebug() => false;
|
||||
|
||||
protected override GameObject NetworkObjectPrefab => QSBNetworkManager.singleton.JellyfishPrefab;
|
||||
@ -39,6 +25,5 @@ public class QSBJellyfish : LinkedWorldObject<JellyfishController, JellyfishTran
|
||||
|
||||
AttachedObject._isRising = value;
|
||||
AttachedObject._attractiveFluidVolume.SetVolumeActivation(!value);
|
||||
DebugLog.DebugWrite($"{this} SET IS RISING");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user