- Home /
Dragging movement Speed
Hi guys, I have a problem. When i drag an object with a mouse, the object have the same movement speed as the mouse have. is There any way to limitate the object movement speed?
Thanks
Answer by 0potable · May 07, 2015 at 02:40 PM
Are you talking about Editor or Runtime manipulation ?
If you want to clamp a gameObject's speed inside the scene view (Editor) you need to override the default Unity Handle Position : http://docs.unity3d.com/ScriptReference/Handles.FreeMoveHandle.html
Create a simple empty script (call it ClampMoveHandle.cs)
Create a CustomEditor script to override the ClampMoveHandle.cs
Clamp the new position of your gameObject based on last frame location + w/ever value you need.
I'll try to do a quick tool out of it for example.
Your answer
Follow this Question
Related Questions
OnMouseUp() Click Display Effect. 1 Answer
How to Touch Drag 3D Objects 2 Answers
How can I manipulate an object with the mouse? 1 Answer
Bullet mouse control 2 Answers