File tree Expand file tree Collapse file tree
Assets/FishNet/Runtime/Object/Prediction Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -484,11 +484,12 @@ private void RemoveForces(bool nonAngular)
484484 if ( _pendingForces . Count > 0 )
485485 {
486486 ForceApplicationType velocityApplicationTypes = ForceApplicationType . AddRelativeForce | ForceApplicationType . AddForce | ForceApplicationType . AddExplosiveForce ;
487+ ForceApplicationType nonVelocityTypes = ForceApplicationType . MovePosition | ForceApplicationType . MoveRotation ;
487488
488489 List < EntryData > newDatas = CollectionCaches < EntryData > . RetrieveList ( ) ;
489490 foreach ( EntryData item in _pendingForces )
490491 {
491- if ( VelocityApplicationTypesContains ( item . Type ) == ! nonAngular )
492+ if ( TypesContain ( velocityApplicationTypes , item . Type ) == ! nonAngular || TypesContain ( nonVelocityTypes , item . Type ) )
492493 newDatas . Add ( item ) ;
493494 }
494495 // Add back to _pendingForces if changed.
@@ -500,9 +501,9 @@ private void RemoveForces(bool nonAngular)
500501 }
501502 CollectionCaches < EntryData > . Store ( newDatas ) ;
502503
503- bool VelocityApplicationTypesContains ( ForceApplicationType apt )
504+ static bool TypesContain ( ForceApplicationType types , ForceApplicationType apt )
504505 {
505- return ( velocityApplicationTypes & apt ) == apt ;
506+ return ( types & apt ) == apt ;
506507 }
507508 }
508509 }
You can’t perform that action at this time.
0 commit comments