docs.unity3d.com
    Show / Hide Table of Contents

    Struct TrackedTransform

    Component tracking the current and previous poses of a transform at a fixed timestep

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.CharacterController
    Syntax
    [Serializable]
    public struct TrackedTransform : IComponentData, IQueryTypeParameter

    Fields

    CurrentFixedRateTransform

    Current transform

    Declaration
    [HideInInspector]
    public RigidTransform CurrentFixedRateTransform
    Field Value
    Type Description
    RigidTransform

    PreviousFixedRateTransform

    Previous transform

    Declaration
    [HideInInspector]
    public RigidTransform PreviousFixedRateTransform
    Field Value
    Type Description
    RigidTransform

    Methods

    CalculatePointDisplacement(float3)

    Calculate a point that results from moving a given point from the previous transform to the current transform

    Declaration
    public float3 CalculatePointDisplacement(float3 point)
    Parameters
    Type Name Description
    float3 point

    The point to move

    Returns
    Type Description
    float3

    The moved point

    CalculatePointVelocity(float3, Single)

    Calculates the linear velocity of a point that gets moved from the previous transform to the current transform over a time delta

    Declaration
    public float3 CalculatePointVelocity(float3 point, float deltaTime)
    Parameters
    Type Name Description
    float3 point

    The point to move

    Single deltaTime

    The time delta

    Returns
    Type Description
    float3

    The calculated linear velocity

    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