• Scripting API
Search Results for

    Show / Hide Table of Contents
    • MudBun
      • MudBrushBase
      • MudDistortion
      • MudModifier
      • MudRenderer
      • MudRenderer.MeshGenerated
      • MudSolid
      • RegisterSdfBrushEvalFuncAttribute
      • Sdf
      • Sdf.Contact
      • Sdf.EvalJobHandle
      • Sdf.Ray
      • Sdf.Result
      • Sdf.SdfBrushEvalFunc
      • SdfBrush
      • SdfBrushMaterial

    Struct Sdf.Contact

    Raycast result.

    Namespace: MudBun
    Assembly: cs.temp.dll.dll
    Syntax
    public struct Contact

    Fields

    GlobalT

    Ratio of the ray's travel distance (until hit or miss) compared to its maximum distance. For a raycast, this is the same as LocalT.
    For a raycast chain, this is overall ratio global to the entire chain.

    Declaration
    public float GlobalT
    Field Value
    Type Description
    Single

    Hit

    Whether the ray has hit the SDF zero isosurface.

    Declaration
    public bool Hit
    Field Value
    Type Description
    Boolean

    LocalT

    Ratio of the ray's travel distance (until hit or miss) compared to its maximum distance.

    For a raycast, this is the same as GlobalT.
    For a raycast chain, this is the ratio local to the last evaluated ray segment.

    Declaration
    public float LocalT
    Field Value
    Type Description
    Single

    Material

    Material at contact point (if material computation is specified).

    Declaration
    public SdfBrushMaterial Material
    Field Value
    Type Description
    SdfBrushMaterial

    MaxStepsReached

    Whether the ray has reached its maximum number of steps.

    Declaration
    public bool MaxStepsReached
    Field Value
    Type Description
    Boolean

    Normal

    Contact normal (if hit).

    Declaration
    public Vector3 Normal
    Field Value
    Type Description
    Vector3

    Position

    Contact position (if hit).

    Declaration
    public Vector3 Position
    Field Value
    Type Description
    Vector3
    ☀
    ☾
    In This Article
    Back to top
    Generated by DocFX
    ☀
    ☾