tag:blogger.com,1999:blog-308361232795615929.post4854092592281935420..comments2023-12-20T22:32:19.162+02:00Comments on Just 3adly: Camera Drag and Zoom with Mouse in Unity 3DUnknownnoreply@blogger.comBlogger5125tag:blogger.com,1999:blog-308361232795615929.post-71974423748874446372016-03-27T21:05:47.576+02:002016-03-27T21:05:47.576+02:00I have placed this script on my camera but it does...I have placed this script on my camera but it does not work properly. It will drag screen to right and zoom out by left mouse but does nothing else. I am working through trying to see if another script is messing with it. Any suggestions or ideas?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-308361232795615929.post-85800261349516199792016-03-11T11:59:47.490+02:002016-03-11T11:59:47.490+02:00Thank you.
About the kinetic scrolling/dragging: I...Thank you.<br />About the kinetic scrolling/dragging: I did not try it here, but it was not easy when I was implementing a list view in C++ a few years ago, and I ended up using someone else's library in my view. I think you can reuse any kinetic scrolling algorithm from any project: c, java, python.... The idea is the same: calculate the speed/acceleration of user drag, and use it in the speed-up then the slow-down times. I'm just not that good with math :)Mahmoud Adly Ezzathttps://www.blogger.com/profile/18301014750462402265noreply@blogger.comtag:blogger.com,1999:blog-308361232795615929.post-8080888148522103772016-03-10T20:35:20.268+02:002016-03-10T20:35:20.268+02:00Nice script. I was curious how difficult it would ...Nice script. I was curious how difficult it would be to add inertia after dragging so the camera comes to a smooth stop.<br />Anonymoushttps://www.blogger.com/profile/14545671512947707201noreply@blogger.comtag:blogger.com,1999:blog-308361232795615929.post-20447645273022508552013-08-05T21:21:23.907+02:002013-08-05T21:21:23.907+02:00Well, I do not understand the question. But If you...Well, I do not understand the question. But If you mean the zoom is not working, try to make sure that the current zoom (the the start of the game) is between the two values (min and max). Otherwise, it will not zoom in or out.Mahmoud Adly Ezzathttps://www.blogger.com/profile/18301014750462402265noreply@blogger.comtag:blogger.com,1999:blog-308361232795615929.post-30819150989678711332013-08-05T18:58:12.942+02:002013-08-05T18:58:12.942+02:00i am changing the value of the zoom in and out but...i am changing the value of the zoom in and out but it doesn't not effect............<br />orthomaxzoom and orthominzoom<br /><br />thanks for the script<br />Anonymoushttps://www.blogger.com/profile/16428771842182529045noreply@blogger.com