prendy
Version:
Make games with prerendered backdrops using babylonjs and repond
14 lines (13 loc) • 449 B
JavaScript
import { getRefs } from "repond";
export function getSpotPosition(place, spot) {
const placesRefs = getRefs().places;
const newPositon = placesRefs[place].spotPositions[spot].clone();
return newPositon;
}
export function getSpotRotation(place, spot) {
const placesRefs = getRefs().places;
const newRotation = placesRefs[place].spotRotations[spot].clone();
return newRotation;
}
// { getSpotPosition, getSpotRotation };
// }