Skip to content

Creating avatar objects

Ricardo Garcia edited this page Nov 21, 2018 · 12 revisions

Instructions to create an avatar object:

  • Import model to Unity.
  • The file name and Unity object must be the same. Do not use spaces or special characters.
  • Set the respective Tag from the following list:
    • ResidualLimbAvatar
    • Socket
    • Elbow
    • Elbow_Upper
    • Elbow_Lower
    • Forearm
    • Hand
  • Prosthetic elbows are special cases as they are composed of two objects with a HingeJoint.
  • Only Forearms and Hands have colliders. The upper arm collider is handled by the Tracker Frame.
  • Add Rigidbody and Joint components using the displayed options: Avatar Components
  • The prefab's position and rotation are used to adjust the avatar position when instantiating.
  • Create a JSON description file for the avatar. The JSON file name must be the same as the object name. Do not use spaces or special characters. Use the following format:
    • {"name":"ObjectName","dimensions":{"x":length,"y":width},"objectType":0}
    • Where "length" and "width" are replaced by the respective float values, e.g. 0.1.
    • Object type is as follows:
      • 0: ResiduaLimb
      • 1: Socket
      • 2: ElbowUpper
      • 3: ElbowLower
      • 4: Forearm
      • 5: Hand

Clone this wiki locally