How to use the @microsoft/mixed-reality-extension-sdk.AnimationWrapMode function in @microsoft/mixed-reality-extension-sdk

To help you get started, we’ve selected a few @microsoft/mixed-reality-extension-sdk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / mixed-reality-extension-sdk-samples / samples / solar-system / src / app.ts View on Github external
value = {
                transform: {
                    position: celestialBody.position.transform.position
                }
            };
            keyframes.push({
                time: orbitTimeInSeconds,
                value,
            });

            // Create the animation on the actor
            celestialBody.position.createAnimation(
                `${bodyName}:orbital`, {
                    keyframes,
                    events: [],
                    wrapMode: MRESDK.AnimationWrapMode.Loop
                });
        }
    }
}
github microsoft / mixed-reality-extension-sdk-samples / samples / solar-system / src / app.ts View on Github external
value = {
                transform: {
                    local: { rotation: celestialBody.model.transform.local.rotation }
                }
            };
            keyframes.push({
                time: axisTimeInSeconds,
                value,
            });

            // Create the animation on the actor
            celestialBody.model.createAnimation(
                `${bodyName}:axial`, {
                    keyframes,
                    events: [],
                    wrapMode: MRESDK.AnimationWrapMode.Loop
                });
        }
    }

@microsoft/mixed-reality-extension-sdk

The Mixed Reality Extension SDK enables developers to build 3D world extensions for AltspaceVR, using Node.JS.

MIT
Latest version published 4 years ago

Package Health Score

48 / 100
Full package analysis