Class ComponentExtensions | 2D Entities | 0.22.0-preview.8
docs.unity3d.com
    Show / Hide Table of Contents

    Class ComponentExtensions

    Inheritance
    Object
    ComponentExtensions
    Namespace: Unity.U2D.Entities.Physics
    Syntax
    public static class ComponentExtensions

    Methods

    ApplyAngularImpulse(ref PhysicsVelocity, PhysicsMass, Single)

    Declaration
    public static void ApplyAngularImpulse(this ref PhysicsVelocity physicsVelocity, PhysicsMass physicsMass, float impulse)
    Parameters
    Type Name Description
    PhysicsVelocity physicsVelocity
    PhysicsMass physicsMass
    Single impulse

    ApplyLinearImpulse(ref PhysicsVelocity, PhysicsMass, float2)

    Declaration
    public static void ApplyLinearImpulse(this ref PhysicsVelocity physicsVelocity, PhysicsMass physicsMass, float2 impulse)
    Parameters
    Type Name Description
    PhysicsVelocity physicsVelocity
    PhysicsMass physicsMass
    float2 impulse

    GetInertia(PhysicsMass)

    Declaration
    public static float GetInertia(this PhysicsMass physicsMass)
    Parameters
    Type Name Description
    PhysicsMass physicsMass
    Returns
    Type Description
    Single

    GetMass(PhysicsMass)

    Declaration
    public static float GetMass(this PhysicsMass physicsMass)
    Parameters
    Type Name Description
    PhysicsMass physicsMass
    Returns
    Type Description
    Single
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023