{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method GetCollisionWorldFromTick | Netcode for Entities | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetCollisionWorldFromTick

    GetCollisionWorldFromTick(NetworkTick, uint, ref PhysicsWorld, out CollisionWorld)

    Get the CollisionWorld state for the given tick and interpolation delay.

    Declaration
    public void GetCollisionWorldFromTick(NetworkTick tick, uint interpolationDelay, ref PhysicsWorld physicsWorld, out CollisionWorld collWorld)
    Parameters
    Type Name Description
    NetworkTick tick

    The server tick we are simulating.

    uint interpolationDelay

    The client interpolation delay, measured in ticks. This is used to look back in time and retrieve the state of the collision world at tick - interpolationDelay. The interpolation delay is internally clamped to the current collision history size (the number of saved history state).

    PhysicsWorld physicsWorld

    The physics world which is use to get collision worlds for ticks which are not yet in the history buffer.

    CollisionWorld collWorld

    The CollisionWorld state retrieved from the history.

    In This Article
    Back to top
    Copyright © 2023 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)