docs.unity3d.com
    Show / Hide Table of Contents

    Struct MarsBody

    Provides a template for tracked body data

    Namespace: Unity.MARS.Data
    Syntax
    public struct MarsBody : IMarsBody, IMRTrackable

    Fields

    BodyDefaultHeight

    The height for a stand-in human body, used as a basis for scaling

    Declaration
    public static float BodyDefaultHeight
    Field Value
    Type Description
    Single

    Properties

    BodyPose

    The Mecanim muscle data for this body

    Declaration
    public HumanPose BodyPose { get; set; }
    Property Value
    Type Description
    HumanPose
    Implements
    IMarsBody.BodyPose

    BoneLengths

    (Optional) Lengths of each bone of this body, corresponding to the Mecanim humanoid

    Declaration
    public List<float> BoneLengths { get; set; }
    Property Value
    Type Description
    List<Single>
    Implements
    IMarsBody.BoneLengths

    Height

    The height of this body

    Declaration
    public float Height { get; set; }
    Property Value
    Type Description
    Single
    Implements
    IMarsBody.Height

    id

    The trackable ID of this body

    Declaration
    public MarsTrackableId id { get; set; }
    Property Value
    Type Description
    MarsTrackableId
    Implements
    IMRTrackable.id

    pose

    The pose of the root bone of this body

    Declaration
    public Pose pose { get; set; }
    Property Value
    Type Description
    Pose
    Implements
    IMRTrackable.pose
    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