Interface PayloadBuilder | Kinematica | 0.8.0-preview
docs.unity.cn
    Show / Hide Table of Contents

    Interface PayloadBuilder

    Utility allowing to sample joint transforms from the binary in order to build payload data out of them and store it inside Kinematica binary (Tags, Marker...). This can be used in order to store a joint position for a contact inside a Marker for example

    Namespace: Unity.Kinematica.Editor
    Syntax
    public interface PayloadBuilder

    Properties

    DestinationInterval

    Destination interval of the poses, in Kinematica binary motion library, associated to the Payload currently being built (Tag or Marker for example). For a Marker, the number of frames of the interval is one.

    Declaration
    Interval DestinationInterval { get; }
    Property Value
    Type Description
    Interval

    SourceToTargetScale

    Source to target scale for retargeting

    Declaration
    float SourceToTargetScale { get; }
    Property Value
    Type Description
    Single

    Methods

    GetJointIndexForName(String)

    Declaration
    int GetJointIndexForName(string jointName)
    Parameters
    Type Name Description
    String jointName
    Returns
    Type Description
    Int32

    GetJointTransformCharacterSpace(Int32)

    Returns the joint transform of the character at jointIndex for the first frame of

    DestinationInterval

    Declaration
    AffineTransform GetJointTransformCharacterSpace(int jointIndex)
    Parameters
    Type Name Description
    Int32 jointIndex
    Returns
    Type Description
    AffineTransform

    GetJointTransformCharacterSpace(Int32, Int32)

    Returns the joint transform of the character at jointIndex for the given frame

    Declaration
    AffineTransform GetJointTransformCharacterSpace(int frameIndex, int jointIndex)
    Parameters
    Type Name Description
    Int32 frameIndex

    Frame index in Kinematica binary motion library

    Int32 jointIndex
    Returns
    Type Description
    AffineTransform

    GetRootTransform()

    Returns the root transform of the character for the first frame of

    DestinationInterval

    Declaration
    AffineTransform GetRootTransform()
    Returns
    Type Description
    AffineTransform

    GetRootTransform(Int32)

    Returns the root transform of the character for the given frame

    Declaration
    AffineTransform GetRootTransform(int frameIndex)
    Parameters
    Type Name Description
    Int32 frameIndex

    Frame index in Kinematica binary motion library

    Returns
    Type Description
    AffineTransform
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Monday, August 3, 2020