- Home /
Question by
Trevor 2 · Oct 17, 2010 at 08:50 PM ·
objectmovetranslatemouse-drag
Translate object on y axis
I need an object, when the right mouse button is clicked and dragged up or down, to translate on the y axis up or down. There also needs to be a constraint added, to limit the min/max height of the object.
Comment
That's really basic code. People aren't here to write your code for you. Have you tried to do it yourself? If so, please paste what you've tried and what didn't work.
Your answer
Follow this Question
Related Questions
Using gameObject.translate moves it farther than expected 1 Answer
move from one point to another 2 Answers
Move object to several locations 2 Answers
Limiting Drag and Drop 1 Answer