docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetWorldTransform

    SetWorldTransform(AffineTransform, bool)

    Teleport character to a target transform

    Declaration
    public void SetWorldTransform(AffineTransform targetTransform, bool bKeepPastTrajectoryInWorldSpace = false)
    Parameters
    Type Name Description
    AffineTransform targetTransform
    bool bKeepPastTrajectoryInWorldSpace

    If true, past trajectory will stay at the same location in world space, otherwise it will follow the root transform

    Remarks

    This method can be used to teleport the character by providing a target world transform

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