|
Move by mouse
Created November 16, 2007 / Updated
December 4, 2007
This sample explains how to move one entity using the mouse. To do it, you need first to add two event handlers for the Eyeshot Viewport: MouseDown and MouseMove, then to convert mouse position to 3D coordinates using the ScreenToWorld() method. Once known the moveFrom and moveTo 3D points, it will be easy to calculate the new entity position.
| Download Visual Studio 2005 project (C#, Visual Basic) |
| MoveByMouse.zip (842 KB) |
Send comments on this article.
|