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

    Show / Hide Table of Contents

    Method SetAngularVelocityWorldSpace

    SetAngularVelocityWorldSpace(ref PhysicsVelocity, in PhysicsMass, in quaternion, in float3)

    Set the world-space angular velocity of a rigid body.

    Declaration
    public static void SetAngularVelocityWorldSpace(this ref PhysicsVelocity bodyVelocity, in PhysicsMass bodyMass, in quaternion bodyOrientation, in float3 angularVelocity)
    Parameters
    Type Name Description
    PhysicsVelocity bodyVelocity

    [in,out] The body's PhysicsVelocity component.

    PhysicsMass bodyMass

    The body's PhysicsMass component.

    quaternion bodyOrientation

    The body's world-space rotation.

    float3 angularVelocity

    An angular velocity in world space specifying radians per second about each axis.

    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)