- Home /
Question by
Entrop · Mar 16, 2013 at 08:17 AM ·
mousefollow
Getting a weapon to follow the mouse cursor( 3D)
So basically i m quite new to scripting, nevertheless what i want to create is a fps view where the sword follows the movements of the mouse, for example moving the mouse from the top of the screen to the bottom will result in the sword following such a movement.i m just not sure how to get the sword to follow the mouse. any help is greatly appreciated :D
Comment
Answer by casperskyly · Mar 16, 2013 at 09:33 AM
Have you tried putting the sword object inside the camera? It will always follow it then.
Answer by Seth-Bergman · Mar 16, 2013 at 12:16 PM
Here's a (very) simple example project for you:
http://dl.dropbox.com/u/11203897/SwordExample.zip
the scene shows you how to get started with a VERY simple script...