docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct NetworkDeltaPosition

    Used to synchromnize delta position when half float precision is enabled

    Implements
    INetworkSerializable
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.Netcode.Components
    Assembly: solution.dll
    Syntax
    public struct NetworkDeltaPosition : INetworkSerializable

    Constructors

    Name Description
    NetworkDeltaPosition(float, float, float, int)

    Constructor

    NetworkDeltaPosition(float, float, float, int, bool3)

    Constructor

    NetworkDeltaPosition(Vector3, int)

    Constructor that defaults to all axis being synchronized.

    NetworkDeltaPosition(Vector3, int, bool3)

    Constructor

    Fields

    Name Description
    HalfVector3

    The HalfVector3 used to synchronize the delta in position

    Methods

    Name Description
    GetConvertedDelta()

    The half float vector3 version of the current delta position.

    GetCurrentBasePosition()

    Returns the current base position (excluding the delta position offset).

    GetDeltaPosition()

    The full precision current delta position.

    GetFullPosition()

    Returns the full position which includes the delta offset position.

    NetworkSerialize<T>(BufferSerializer<T>)

    The serialization implementation of INetworkSerializable

    ToVector3(int)

    Gets the full precision value of Vector3 position while also potentially updating the current base position.

    UpdateFrom(ref Vector3, int)

    Updates the position delta based off of the current base position.

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