fix(runtime): preserve hidden setposition collision ownership
This commit is contained in:
parent
9b0f59bd1b
commit
0fbc7a1fb7
8 changed files with 343 additions and 43 deletions
|
|
@ -752,6 +752,12 @@ public sealed class RuntimeEntityObjectLifetime : IDisposable
|
|||
transition = Entities.ApplyRawPhysicsState(
|
||||
canonical,
|
||||
update.PhysicsState);
|
||||
if (canonical.Key is { } key)
|
||||
{
|
||||
Physics.Engine.ShadowObjects.UpdatePhysicsState(
|
||||
key.LocalEntityId,
|
||||
(uint)canonical.FinalPhysicsState);
|
||||
}
|
||||
ulong stateVersion = canonical.StateAuthorityVersion;
|
||||
ulong physicsMutationVersion =
|
||||
canonical.PhysicsStateMutationVersion;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue