This repository was archived by the owner on Jun 10, 2022. It is now read-only.
MRE v0.15.0 - Animations Refresh Part 1
·
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, includingtime(for seeking) andspeed(for fast forward and reverse). For full details see the documentation. - Add two new actor properties:
animationsandanimationsByName. 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.createAnimationnow resolves to anAnimationobject.
- Add a new class:
- 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)