docs.unity3d.com
    Show / Hide Table of Contents

    Struct DynamicsWorld

    Namespace: Unity.Physics
    Syntax
    public struct DynamicsWorld : IDisposable

    Constructors

    DynamicsWorld(Int32, Int32)

    Declaration
    public DynamicsWorld(int numMotions, int numJoints)
    Parameters
    Type Name Description
    Int32 numMotions
    Int32 numJoints

    Properties

    Joints

    Declaration
    public readonly NativeArray<Joint> Joints { get; }
    Property Value
    Type Description
    NativeArray<Joint>

    MotionDatas

    Declaration
    public readonly NativeArray<MotionData> MotionDatas { get; }
    Property Value
    Type Description
    NativeArray<MotionData>

    MotionVelocities

    Declaration
    public readonly NativeArray<MotionVelocity> MotionVelocities { get; }
    Property Value
    Type Description
    NativeArray<MotionVelocity>

    NumJoints

    Declaration
    public readonly int NumJoints { get; }
    Property Value
    Type Description
    Int32

    NumMotions

    Declaration
    public readonly int NumMotions { get; }
    Property Value
    Type Description
    Int32

    Methods

    Clone()

    Declaration
    public DynamicsWorld Clone()
    Returns
    Type Description
    DynamicsWorld

    Dispose()

    Declaration
    public void Dispose()

    GetJointIndex(Entity)

    Declaration
    public int GetJointIndex(Entity entity)
    Parameters
    Type Name Description
    Entity entity
    Returns
    Type Description
    Int32

    Reset(Int32, Int32)

    Declaration
    public void Reset(int numMotions, int numJoints)
    Parameters
    Type Name Description
    Int32 numMotions
    Int32 numJoints

    UpdateJointIndexMap()

    Declaration
    public void UpdateJointIndexMap()
    In This Article
    • Constructors
      • DynamicsWorld(Int32, Int32)
    • Properties
      • Joints
      • MotionDatas
      • MotionVelocities
      • NumJoints
      • NumMotions
    • Methods
      • Clone()
      • Dispose()
      • GetJointIndex(Entity)
      • Reset(Int32, Int32)
      • UpdateJointIndexMap()
    Back to top
    Terms of use
    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