Show / Hide Table of Contents

    Struct ContactPoint

    Describes a contact point where the collision occurs. ContactPoint is used in CollisionEvent and Collision structure.

    Namespace: Motphys.Rigidbody
    Assembly: solution.dll
    Syntax
    public struct ContactPoint

    Fields

    normal

    Declaration
    public Vector3 normal
    Field Value
    Type Description
    Vector3

    The contact normal in world space. Direction is toward outside of the first collider.

    point

    Declaration
    public Vector3 point
    Field Value
    Type Description
    Vector3

    The first collider's contact position in world space.

    separation

    Declaration
    public float separation
    Field Value
    Type Description
    System.Single

    The separation distance of the contact point of two colliders. Always negative when two colliders are colliding.

    Methods

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()

    See Also

    CollisionEvent
    Collision
    Back to top Copyright © 2020-2024 北京谋先飞技术有限公司及其关联公司北京谋先飞科技有限公司
    Generated by DocFX