reanimator

This commit is contained in:
2025-08-08 23:37:33 +02:00
parent 369f7099ad
commit 2d06552025
10 changed files with 268 additions and 2 deletions

View File

@@ -250,6 +250,8 @@ namespace RebootKit.Engine.Simulation {
}
}
internal bool IsLocalOnly;
[SerializeField] internal Rigidbody actorRigidbody;
[InfoBox("If empty, will use GetComponentsInChildren<Collider>() to find colliders.")]
[SerializeField] Collider[] m_OverrideActorColliders;
@@ -346,7 +348,7 @@ namespace RebootKit.Engine.Simulation {
}
public void MountTo(Actor actor, string slotName) {
if (!RR.IsServer()) {
if (!RR.IsServer() && !IsLocalOnly) {
s_ActorLogger.Error($"Only the server can mount actors. Actor: {name} (ID: {ActorID})");
return;
}
@@ -370,7 +372,7 @@ namespace RebootKit.Engine.Simulation {
}
public void UnMount() {
if (!RR.IsServer()) {
if (!RR.IsServer() && !IsLocalOnly) {
s_ActorLogger.Error($"Only the server can unmount actors. Actor: {name} (ID: {ActorID})");
return;
}