Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    HitResult Struct

    Namespace: Stride.Physics
    Assembly: Stride.Physics.dll

    The result of a Physics Raycast or ShapeSweep operation

    public struct HitResult
    Name Description
    Fields
    Collider

    The Collider hit if Succeeded

    HitFraction
    Normal
    Point
    Succeeded
    | Improve this Doc View Source

    Fields


    Collider

    The Collider hit if Succeeded

    public PhysicsComponent Collider
    Field Value
    Type Description
    PhysicsComponent

    HitFraction

    public float HitFraction
    Field Value
    Type Description
    System.Single

    Normal

    public Vector3 Normal
    Field Value
    Type Description
    Vector3

    Point

    public Vector3 Point
    Field Value
    Type Description
    Vector3

    Succeeded

    public bool Succeeded
    Field Value
    Type Description
    System.Boolean

    Inherited Members

    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation