I've searched and read, but haven't found any satisfactory answers..
Lets say I have a clean project. I add a cube. When pressing play in Unity3D I want to move this cube with my mouse. Pseudo code:
There are no rigid bodies involved, so I'm guessing this should be fairly simple without a lot of code?
Lets say I have a clean project. I add a cube. When pressing play in Unity3D I want to move this cube with my mouse. Pseudo code:
Code (csharp):
- function OnMouseDrag() {
- // move gameObject along with the mouse
- // transform = Mouse.transform ??
- }