docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct PhysicsWorldIndex

    Shared component for entities that belong to a physics world. Default physics world is built in BuildPhysicsWorld, from entities that have Value of 0.

    Implements
    ISharedComponentData
    IQueryTypeParameter
    IEquatable<PhysicsWorldIndex>
    Inherited Members
    ValueType.Equals(object)
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Physics
    Assembly: Unity.Physics.dll
    Syntax
    public struct PhysicsWorldIndex : ISharedComponentData, IQueryTypeParameter, IEquatable<PhysicsWorldIndex>

    Constructors

    PhysicsWorldIndex(uint)

    Constructor taking the physics world index, with default value of 0 (used for default physics world).

    Declaration
    public PhysicsWorldIndex(uint worldIndex = 0)
    Parameters
    Type Name Description
    uint worldIndex

    (Optional) Zero-based index of the world.

    Fields

    Value

    Index of the physics world that this entity belongs to.

    Declaration
    public uint Value
    Field Value
    Type Description
    uint

    Methods

    Equals(PhysicsWorldIndex)

    Tests if this PhysicsWorldIndex is considered equal to another.

    Declaration
    public bool Equals(PhysicsWorldIndex other)
    Parameters
    Type Name Description
    PhysicsWorldIndex other

    The physics world index to compare to this object.

    Returns
    Type Description
    bool

    True if the objects are considered equal, false if they are not.

    GetHashCode()

    Calculates a hash code for this object.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for this object.

    Overrides
    ValueType.GetHashCode()

    Implements

    Unity.Entities.ISharedComponentData
    Unity.Entities.IQueryTypeParameter
    IEquatable<T>
    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)