Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

MRE v0.15.0 - Animations Refresh Part 1

Compare
Choose a tag to compare
@stevenvergenz stevenvergenz released this 05 Feb 18:05
· 150 commits to red since this release

Features

  • Implement a new, more powerful, animation API. (#475)
    • Add a new class: Animation. This encapsulates all the properties of an animation, including time (for seeking) and speed (for fast forward and reverse). For full details see the documentation.
    • Add two new actor properties: animations and animationsByName. These are Maps that reference animations that target the actor by ID and name respectively.
    • When you create an actor from a source with animations (i.e. a glTF prefab or library object), the spawned actor will have those animations listed.
    • Actor.createAnimation now resolves to an Animation object.
  • Convert collider from a union type to an enum for improved autocomplete. So instead of specifying the collider shape as a string (collider: { geometry: { shape: 'box' } }), you now provide the enum value (collider: { geometry: { shape: MRE.ColliderType.Box } }). (#463)

Housekeeping

  • Fix test bugs (#468)
  • Convert code base to Typescript 3.7 and ESLint (#467)
  • Prevent unauthorized users from running certain tests (#466)
  • Add platform to collision layer test (#461)
  • Fix documentation for overloaded methods (#459)