It works on the web but not on the phone

Raycast.prototype.doRaycast = function(screenPosition){
var from = this.cameratt.camera.screenToWorld(screenPosition.x,screenPosition.y,this.cameratt.camera.nearClip);
console.log(screenPosition.x);
console.log(screenPosition.y);
console.log(from.x);
var to = this.cameratt.camera.screenToWorld(screenPosition.x, screenPosition.y, this.cameratt.camera.farClip);
console.log(to.x);
var result = this.app.systems.rigidbody.raycastFirst(from,to);

}

on the phone screenPosition It doesn’t seem to exist
and Forgive me for my poor English
thank you !:rofl:

Or that’s the problem now when i change the sence

[raycast.js?id=12603188:35]: Uncaught TypeError: Cannot read property ‘screenToWorld’ of undefined

TypeError: Cannot read property ‘screenToWorld’ of undefined
at script.Raycast.doRaycast (https://launch.playcanvas.com/api/assets/files/scripts/raycast.js?id=12603188:35:38)
at script.Raycast.mouseDown (https://launch.playcanvas.com/api/assets/files/scripts/raycast.js?id=12603188:23:8)
at Mouse.fire (https://code.playcanvas.com/playcanvas-stable.dbg.js:615:18)
at Mouse._handleDown (https://code.playcanvas.com/playcanvas-stable.dbg.js:19252:10)