ReactNative demo hitTest position error

scene.onPointerObservable is part of the input system that is still being adapted to the newer DeviceSourceManager input abstraction. @PolygonalSun is it expected that onPointerObservable works with Babylon Native at this point? If so, can you help diagnose this?

@qiufeng you can also try using DeviceSourceManager directly as a work around. You can find some examples in other threads such as How to enable touch input for ArcRotateCamera on Babylon React Native - Questions - Babylon.js (babylonjs.com)

@qiufeng not sure if this is causing a problem, but you shouldn’t have this code in your app:

      engine.runRenderLoop(function () {
        scene.render();
      });

Babylon React Native does that automatically.

@qiufeng also what is the exact make/model of the device you are testing this code on?

1 Like