docs.unity3d.com
    显示 / 隐藏目录

    Struct PlaneVoxel

    Namespace: Unity.MARS
    Syntax
    public struct PlaneVoxel

    Fields

    LayerCoordinates

    The column and row in the layer where this voxel exists

    Declaration
    public Vector2Int LayerCoordinates
    Field Value
    Type Description
    Vector2Int

    PointDensity

    Number of points within this voxel. A voxel only contributes to a plane if its point density exceeds a minimum threshold.

    Declaration
    public int PointDensity
    Field Value
    Type Description
    Int32

    PointYOffset

    Average local y offset of all points within this voxel. If a voxel is part of a plane, this value affects the y offset of the plane relative to the layer origin.

    Declaration
    public float PointYOffset
    Field Value
    Type Description
    Single
    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)