Search Results for

    Show / Hide Table of Contents

    Class RigidbodyExtensions

    UnityEngine.Rigidbody Based Extension Methods

    Inheritance
    System.Object
    RigidbodyExtensions
    Namespace: GDX
    Syntax
    [VisualScriptingCompatible((short)2)]
    public static class RigidbodyExtensions

    Methods

    | Improve this Doc View Source

    MomentOfInertia(Rigidbody, Vector3)

    Get a UnityEngine.Rigidbody's moment of inertia for a targetAxis.

    Declaration
    public static float MomentOfInertia(this Rigidbody targetRigidbody, Vector3 targetAxis)
    Parameters
    Type Name Description
    UnityEngine.Rigidbody targetRigidbody

    The UnityEngine.Rigidbody to evaluate.

    UnityEngine.Vector3 targetAxis

    The axis use to calculate the moment of inertia.

    Returns
    Type Description
    System.Single

    The moment of inertia for the targetAxis.

    Remarks

    Provided targetAxis must not be UnityEngine.Vector3.zero.

    Exceptions
    Type Condition
    UnsupportedRuntimeException

    Not supported on DOTS Runtime.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Built on 2024-01-01 against 1f69a68.
    Generated by Dox+DocFX.