{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Struct PhysicsWorldData | Unity Physics | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct PhysicsWorldData

    Structure containing PhysicsWorld and other data and queries that are necessary for simulating a physics world. Note: it is important to create PhysicsWorldData and use it (to schedule physics world build) in the same system. Creating it in one system, and calling the Schedule() methods in another can cause race conditions.

    Implements
    IDisposable
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.Physics.Systems
    Assembly: solution.dll
    Syntax
    public struct PhysicsWorldData : IDisposable

    Constructors

    Name Description
    PhysicsWorldData(ref SystemState, in PhysicsWorldIndex)

    Constructor.

    Fields

    Name Description
    ComponentHandles

    The component handles. Stores the information about ECS component handles needed for generating a PhysicsWorld

    DynamicEntityGroup

    Group in which the dynamic bodies belong to.

    HaveStaticBodiesChanged

    A flag indicating if the static bodies have changed in this frame.

    JointEntityGroup

    Group in which the joints belong to

    PhysicsWorld

    The physics world.

    StaticEntityGroup

    Group in which the static bodies belong to

    Methods

    Name Description
    Dispose()

    Free stored memory.

    Update(ref SystemState)

    Calls the Update(ref SystemState) of the handles stored in this object. />

    In This Article
    Back to top
    Copyright © 2023 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)