Hi all, came across another issue when trying to implement a draggable object script, I started using the drag rigidbody script which comes with the standard assets, this deemed too random for what I needed so I moved on to the DragObject script as featured on the wiki. Now as many of you probably know this only works in two axis, which in one way is ideal for what i want…however I need this script to act on different axis depending on the camera it’s being ran on.
I know this may sound very confusing, but I am building a game which has interactivity on three separate screens (at right angles to each other to provide an immersive game). As mentioned before I am very new to coding, and I feel like I have bitten off more than I can chew learning to code on three cameras at once rather than the basic way to start with!
Any help anybody can offer would be greatly appreciated!
regards.
Alan P.
Was working away at this all yesterday and still no closer to a solution, tested out creating three separate versions of the script, with each one specifying a camera, this still doesn’t work, as the three screen setup seems to confuse it. To clear up any confusion I have attached the current build of the game, so people can have a look at my issue. As you can see from the weird aspect the three cameras have been melded together to create an ultra widescreen display (this is then split with a Matrox triple head-to-go).
To see the problem try and grab one of the boxes travelling across the top of the screen. The only way this works is if the box is in the middle of the screen when the drag is started.
They’re maybe a better way to do this, that I haven’t thought about. Maybe constraining the movement of the object to within the conveyor belt area, this way the axis’ don’t matter and all the mouse drag does is move it within the area, but again, not a clue.
regards.
Alan P.
410464–14205–$conveyor_concept_v4.zip (7.49 MB)