docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method MoveBody

    MoveBody(Vector3)

    Applies the given motion to linkedBody. A collision can constrain the movement from taking place.

    Declaration
    CollisionFlags MoveBody(Vector3 motion)
    Parameters
    Type Name Description
    Vector3 motion

    Amount of translation to apply.

    Returns
    Type Description
    CollisionFlags

    Returns flags that indicate the direction of the collision, if there was one.

    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)