playMaker

Author Topic: Mouse drag even not triggered if camera is too far from object  (Read 1969 times)

ryf9059

  • Full Member
  • ***
  • Posts: 100
After searching around I kind of have a working demo of mouse drag object. But in my scene the camera is too close to the object and when the object falling from the sky the camera cannot capture all of them since part of the falling trace is outside. I then try put the camera somewhat further and try to run again, strangely the mouse drag event is not even triggered anymore.

I then played with camera distance while running, I found that if I push the camera a bit further the event still triggers but up to some distance the trigger doesn't work anymore, but I need to keep the distance between camera and the objects.

Any idea what caused the trigger to be not responding and how to solve this issue? Thanks

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Mouse drag even not triggered if camera is too far from object
« Reply #1 on: March 18, 2014, 08:25:12 AM »
If you're using Mouse Pick, it has a Ray Distance you can specify.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

ryf9059

  • Full Member
  • ***
  • Posts: 100
Re: Mouse drag even not triggered if camera is too far from object
« Reply #2 on: March 18, 2014, 09:32:01 AM »
If you're using Mouse Pick, it has a Ray Distance you can specify.

In my current example I'm not longer using Mouse Pick, instead I use Get Mouse X/Y, normalize then and use Camera Screen To World Point. And that baffles me because there is no ray cast line length or anything like that.

ryf9059

  • Full Member
  • ***
  • Posts: 100
Re: Mouse drag even not triggered if camera is too far from object
« Reply #3 on: March 18, 2014, 11:38:21 AM »
Never mind, problem solved, it just worked again, without sign.

Maybe before then it's a bug, who knows, as long as it works now.