docs.unity3d.com
    Show / Hide Table of Contents

    Class Integrator

    Integrates world's motions.

    Inheritance
    Object
    Integrator
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Physics
    Syntax
    public static class Integrator

    Methods

    Integrate(NativeArray<MotionData>, NativeArray<MotionVelocity>, Single)

    Integrate the world's motions forward by the given time step.

    Declaration
    public static void Integrate(NativeArray<MotionData> motionDatas, NativeArray<MotionVelocity> motionVelocities, float timeStep)
    Parameters
    Type Name Description
    NativeArray<MotionData> motionDatas

    The motion datas.

    NativeArray<MotionVelocity> motionVelocities

    The motion velocities.

    Single timeStep

    The time step.

    Integrate(ref RigidTransform, in MotionVelocity, in Single)

    Integrate a single transform for the provided velocity and time.

    Declaration
    public static void Integrate(ref RigidTransform transform, in MotionVelocity motionVelocity, in float timeStep)
    Parameters
    Type Name Description
    RigidTransform transform

    [in,out] The transform.

    MotionVelocity motionVelocity

    The motion velocity.

    Single timeStep

    The time step.

    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