Hi,
I would like to rotate the transformContainer (and BoxAnimated) by 0 or 180 degrees as in this example:
https://github.com/BabylonJS/BabylonReactNative/blob/master/Apps/Playground/playground-shared/App.tsx
if (event.inputIndex === PointerInput.Move && event.movementX) {
rootNode.rotate(Vector3.Down(), event.movementX * 0.005);
if(event.movementX >= 0) {
// i.e. look ahead
transformContainer.rotate(Vector3.Up(), 0);
} else {
// turn around 180 degrees
transformContainer.rotate(Vector3.Up(), Math.PI);
}
};
Does anyone have an idea?
it works, but BoxAnimated changes position all the time.