docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct Math.ScaledMTransform

    A transform in matrix format that includes scale.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Physics
    Assembly: Unity.Physics.dll
    Syntax
    public struct Math.ScaledMTransform

    Constructors

    ScaledMTransform(RigidTransform, float)

    Constructor.

    Declaration
    public ScaledMTransform(RigidTransform transform, float uniformScale)
    Parameters
    Type Name Description
    RigidTransform transform

    The transform.

    float uniformScale

    The uniform scale.

    ScaledMTransform(MTransform, float)

    Constructor.

    Declaration
    public ScaledMTransform(Math.MTransform transform, float uniformScale)
    Parameters
    Type Name Description
    Math.MTransform transform

    The transform.

    float uniformScale

    The uniform scale.

    Fields

    Transform

    The transform.

    Declaration
    public Math.MTransform Transform
    Field Value
    Type Description
    Math.MTransform

    Properties

    Identity

    Gets the identity.

    Declaration
    public static Math.ScaledMTransform Identity { get; }
    Property Value
    Type Description
    Math.ScaledMTransform

    The identity.

    InverseRotation

    Gets the inverse rotation.

    Declaration
    public float3x3 InverseRotation { get; }
    Property Value
    Type Description
    float3x3

    The inverse rotation.

    Rotation

    Gets or sets the rotation.

    Declaration
    public float3x3 Rotation { get; set; }
    Property Value
    Type Description
    float3x3

    The rotation.

    Scale

    Gets or sets the scale.

    Declaration
    public float Scale { get; set; }
    Property Value
    Type Description
    float

    The scale.

    Translation

    Gets or sets the translation.

    Declaration
    public float3 Translation { get; set; }
    Property Value
    Type Description
    float3

    The translation.

    Methods

    Mul(ScaledMTransform, MTransform)

    Returns aFromC = aFromB * bFromC, where bFromC has no scale Advanced use only.

    Declaration
    public static Math.ScaledMTransform Mul(Math.ScaledMTransform aFromB, Math.MTransform bFromC)
    Parameters
    Type Name Description
    Math.ScaledMTransform aFromB

    aFromB.

    Math.MTransform bFromC

    bFromC.

    Returns
    Type Description
    Math.ScaledMTransform

    A ScaledMTransform, aFromC.

    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)