docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct WaterSearchResult

    Structure that holds the output parameters of the search.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Rendering.HighDefinition
    Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
    Syntax
    public struct WaterSearchResult

    Fields

    candidateLocationWS

    Location of the 3D world space point that has been displaced to the target positions

    Declaration
    public float3 candidateLocationWS
    Field Value
    Type Description
    float3

    currentDirectionWS

    Vector that gives the local current orientation (if any).

    Declaration
    public float3 currentDirectionWS
    Field Value
    Type Description
    float3

    error

    Horizontal error value of the search algorithm.

    Declaration
    public float error
    Field Value
    Type Description
    float

    normalWS

    If requested in the search parameters, returns the world space normal of the water surface at the projected position.

    Declaration
    public float3 normalWS
    Field Value
    Type Description
    float3

    numIterations

    Number of iterations of the search algorithm to find the height value.

    Declaration
    public int numIterations
    Field Value
    Type Description
    int

    projectedPositionWS

    Returns the world space position projected on the water surface along the up vector of the water surface.

    Declaration
    public float3 projectedPositionWS
    Field Value
    Type Description
    float3
    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)