Struct RaycastHit | 2D Entities | 0.22.0-preview.8
docs.unity3d.com
    Show / Hide Table of Contents

    Struct RaycastHit

    Namespace: Unity.U2D.Entities.Physics
    Syntax
    public struct RaycastHit : IQueryResult

    Properties

    ColliderKey

    Declaration
    public ColliderKey ColliderKey { get; }
    Property Value
    Type Description
    ColliderKey
    Implements
    IQueryResult.ColliderKey

    Entity

    Declaration
    public Entity Entity { get; }
    Property Value
    Type Description
    Entity
    Implements
    IQueryResult.Entity

    Fraction

    Declaration
    public float Fraction { get; }
    Property Value
    Type Description
    Single
    Implements
    IQueryResult.Fraction

    IsValid

    Declaration
    public bool IsValid { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IQueryResult.IsValid

    PhysicsBodyIndex

    Declaration
    public int PhysicsBodyIndex { get; }
    Property Value
    Type Description
    Int32
    Implements
    IQueryResult.PhysicsBodyIndex

    Position

    Declaration
    public float2 Position { get; }
    Property Value
    Type Description
    float2

    SurfaceNormal

    Declaration
    public float2 SurfaceNormal { get; }
    Property Value
    Type Description
    float2
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023