docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ContactEventHandlerInfo

    Information a Rigidbody returns to RigidbodyContactEventManager via GetContactEventHandlerInfo()
    if the Rigidbody registers itself with IContactEventHandlerWithInfo as opposed to IContactEventHandler.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Netcode.Components
    Assembly: Unity.Netcode.Runtime.dll
    Syntax
    public struct ContactEventHandlerInfo

    Fields

    HasContactEventPriority

    Declaration
    public bool HasContactEventPriority
    Field Value
    Type Description
    bool

    ProvideNonRigidBodyContactEvents

    When set to true, the RigidbodyContactEventManager will include non-Rigidbody based contact events.
    When the RigidbodyContactEventManager invokes the ContactEvent(ulong, Vector3, Rigidbody, Vector3, bool, Vector3) it will return null in place
    of the collidingBody parameter if the contact event occurred with a collider that is not registered with the RigidbodyContactEventManager.

    Declaration
    public bool ProvideNonRigidBodyContactEvents
    Field Value
    Type Description
    bool
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)