Search Results for

    Show / Hide Table of Contents

    Struct DOTSPlane

    A DOTS representation of a Unity Plane

    Implements
    IComponentData
    Namespace: DOTSDynamicBone
    Assembly: cs.temp.dll.dll
    Syntax
    public struct DOTSPlane : IComponentData
    Remarks

    A DOTS representation of a Unity Plane that was made before I starting using the Unity.Physics.Plane....I'm still using this plane though cause it works

    Constructors

    DOTSPlane(float3, float3)

    Declaration
    public DOTSPlane(float3 inNormal, float3 inPoint)
    Parameters
    Type Name Description
    float3 inNormal
    float3 inPoint

    DOTSPlane(float3, float3, float3)

    Declaration
    public DOTSPlane(float3 a, float3 b, float3 c)
    Parameters
    Type Name Description
    float3 a
    float3 b
    float3 c

    DOTSPlane(float3, Single)

    Declaration
    public DOTSPlane(float3 inNormal, float distance)
    Parameters
    Type Name Description
    float3 inNormal
    System.Single distance

    Properties

    distance

    Declaration
    public float distance { get; set; }
    Property Value
    Type Description
    System.Single

    flipped

    Declaration
    public readonly DOTSPlane flipped { get; }
    Property Value
    Type Description
    DOTSPlane

    normal

    Declaration
    public float3 normal { get; set; }
    Property Value
    Type Description
    float3

    Methods

    ClosestPointOnPlane(float3)

    Declaration
    public float3 ClosestPointOnPlane(float3 point)
    Parameters
    Type Name Description
    float3 point
    Returns
    Type Description
    float3

    Flip()

    Declaration
    public void Flip()

    GetDistanceToPoint(float3)

    Declaration
    public float GetDistanceToPoint(float3 point)
    Parameters
    Type Name Description
    float3 point
    Returns
    Type Description
    System.Single

    GetSide(float3)

    Declaration
    public bool GetSide(float3 point)
    Parameters
    Type Name Description
    float3 point
    Returns
    Type Description
    System.Boolean

    SameSide(float3, float3)

    Declaration
    public bool SameSide(float3 inPt0, float3 inPt1)
    Parameters
    Type Name Description
    float3 inPt0
    float3 inPt1
    Returns
    Type Description
    System.Boolean

    Set3Points(float3, float3, float3)

    Declaration
    public void Set3Points(float3 a, float3 b, float3 c)
    Parameters
    Type Name Description
    float3 a
    float3 b
    float3 c

    SetNormalAndPosition(float3, float3)

    Declaration
    public void SetNormalAndPosition(float3 inNormal, float3 inPoint)
    Parameters
    Type Name Description
    float3 inNormal
    float3 inPoint

    Translate(DOTSPlane, Vector3)

    Declaration
    public static DOTSPlane Translate(DOTSPlane plane, Vector3 translation)
    Parameters
    Type Name Description
    DOTSPlane plane
    Vector3 translation
    Returns
    Type Description
    DOTSPlane

    Translate(Vector3)

    Declaration
    public void Translate(Vector3 translation)
    Parameters
    Type Name Description
    Vector3 translation

    Implements

    IComponentData
    In This Article
    Back to top DOTS Dynamic Bone Documentation