News: Enjoy our Christmas offer 30% off on our latest package Tower Defense Level Kit

  • January 20, 2019, 05:49:48 PM

Login with username, password and session length

Author Topic: Gesture.PickedObject on modified frustum  (Read 551 times)

Offline ikazrima

  • Newbie
  • *
  • Posts: 1
Gesture.PickedObject on modified frustum
« on: May 04, 2017, 03:29:00 PM »
Hi there,

I'm using a modified frustum (oblique perspective), now the raycast for gesture.pickedObject is off and wouldn't hit an object on screen.  Any fix for that?

Offline Nicolas

  • Administrator
  • Hero Member
  • *****
  • Posts: 792
Re: Gesture.PickedObject on modified frustum
« Reply #1 on: May 09, 2017, 10:11:28 AM »

EasyTouch uses Unity's API to cast from camera to te scene and to compute the 3D position to screen 2D.  So I have to write complete routines that take into account your matrix to do what Unity is already doing. To be honnest , it is not on the program....

Why don't you use an orthographic camera fo this result ?
« Last Edit: May 09, 2017, 10:16:45 AM by Nicolas »