docs.unity3d.com
    Show / Hide Table of Contents

    Struct BuildPhysicsWorldData

    Public system data for this world's instance of a BuildPhysicsWorld system.

    Contains physics world data based on the entity world. The physics world data will contain a rigid body for every entity which has a rigid body component, and a joint for every entity which has a joint component.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Physics.Systems
    Syntax
    public struct BuildPhysicsWorldData : IComponentData, IQueryTypeParameter

    Fields

    PhysicsData

    Information describing the PhysicsWorldData. Important : avoid using BuildPhysicsWorldData.PhysicsWorldData.PhysicsWorld. Use PhysicsWorldSingleton instead.

    Declaration
    public PhysicsWorldData PhysicsData
    Field Value
    Type Description
    PhysicsWorldData

    WorldFilter

    A filter specifying the world.

    Declaration
    public PhysicsWorldIndex WorldFilter
    Field Value
    Type Description
    PhysicsWorldIndex

    Properties

    DynamicEntityGroup

    Gets the group the dynamic bodies belongs to.

    Declaration
    public readonly EntityQuery DynamicEntityGroup { get; }
    Property Value
    Type Description
    EntityQuery

    The dynamic entity group.

    HaveStaticBodiesChanged

    True if the static bodies have changed this frame.

    Declaration
    public readonly NativeReference<int> HaveStaticBodiesChanged { get; }
    Property Value
    Type Description
    NativeReference<Int32>

    The have static bodies changed flag.

    JointEntityGroup

    Gets the group the joints belongs to.

    Declaration
    public readonly EntityQuery JointEntityGroup { get; }
    Property Value
    Type Description
    EntityQuery

    The joint entity group.

    StaticEntityGroup

    Gets the group the static bodies belongs to.

    Declaration
    public readonly EntityQuery StaticEntityGroup { get; }
    Property Value
    Type Description
    EntityQuery

    The static entity group.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023