{!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} Method BuildLocalToWorld | Unity Physics | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method BuildLocalToWorld

    BuildLocalToWorld(int, RigidTransform, float, bool, NativeArray<PostTransformMatrix>)

    Construct a LocalToWorld matrix for a rigid body's graphical representation.

    Declaration
    public static LocalToWorld BuildLocalToWorld(int i, RigidTransform transform, float uniformScale, bool hasPostTransformMatrix, NativeArray<PostTransformMatrix> postTransformMatrices)
    Parameters
    Type Name Description
    int i

    The index of the rigid body in the chunk.
    Used to look up the body's PostTransformMatrix component in the provided postTransformMatrices array, if any (see hasPostTransformMatrix parameter).

    RigidTransform transform

    The body's world space transform.

    float uniformScale

    The body's uniform scale.

    bool hasPostTransformMatrix

    true if the rigid body has a PostTransformMatrix component; otherwise, false.

    NativeArray<PostTransformMatrix> postTransformMatrices

    The array of post transform matrices in the chunk.

    Returns
    Type Description
    LocalToWorld

    A LocalToWorld matrix to use in place of those produced by default.

    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)