Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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
});
}
}
}
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
});
}
}