docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum PhysicGroupRunMode

    Instrument how and when the Unity.Physics.Systems.PhysicsSystemGroup inside the PredictedFixedStepSimulationSystemGroup should run.

    Namespace: Unity.NetCode
    Assembly: Unity.NetCode.Physics.dll
    Syntax
    public enum PhysicGroupRunMode

    Fields

    Name Description
    AlwaysRun

    Allow the physics group to run, even if there aren't physics entities, predicted ghost entities, or lag compensation enabled. If no physics entities exists, the physics loop run only when the IsFirstTimeFullyPredictingTick is true.

    LagCompensationEnabledOrAnyPhysicsEntities

    A more relaxed option for both server and client. The Unity.Physics.Systems.PhysicsSystemGroup requires entities with Unity.Physics.PhysicsVelocity or Unity.Physics.Collider components to run. In case no entities match this query, but the lag compensation is active, the physics group will update.

    LagCompensationEnabledOrKinematicGhosts

    The default option for both the server and client. The Unity.Physics.Systems.PhysicsSystemGroup requires entities with PredictedGhost and Unity.Physics.PhysicsVelocity components to run. On the server, If no entities match this query, and the lag compensation is active, the physics group will still run.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)