Professional Web Applications Themes

model to follow mouse - Macromedia Director 3D

Hi I am creating a shooting game in director 3d. I hve a gun pointer which i want to move along with the mouse. The problem i am facing is i am not able to pass the mouse cordinates to the model which i want to move along with the mouse. There are behaviours for dragging but i want to follow the model along with the mouse when the mouse moves. Any idea how to do this Yogesh...

  1. #1

    Default model to follow mouse

    Hi
    I am creating a shooting game in director 3d. I hve a gun pointer which i want
    to move along with the mouse. The problem i am facing is i am not able to pass
    the mouse cordinates to the model which i want to move along with the mouse.
    There are behaviours for dragging but i want to follow the model along with the
    mouse when the mouse moves.
    Any idea how to do this

    Yogesh

    yogeshhungama Guest

  2. #2

    Default Re: model to follow mouse

    It's possible that this lesson of our old tutorial will help you:
    [url]http://www.dmu.com/3dd/dd23.html[/url]
    Better to read all the lessons. It's free! Many on line demos...
    Americo Guest

  3. #3

    Default Re: model to follow mouse

    Here's a behavior that might be useful: [url]http://nonlinear.openspark.com/tips/3D/mousebox/[/url]
    openspark Guest

  4. #4

    Default Re: model to follow mouse

    nah!, easy.

    look at the function:

    spriteSpaceToWorldSpace(x,y)

    this function converts the x,y coordinates (position of the mouse) to x,y,z
    coordinates tha depends of the proyection of the camera. Than means that a
    point in the screen is proyected in the 3dworld to the plane of proyection of
    the camera in a 3 coordinate point where you put your model.

    grettinga

    ensamblador Guest

Similar Threads

  1. Camera to follow mouse movements
    By Spastuscat in forum Macromedia Director 3D
    Replies: 2
    Last Post: February 10th, 10:41 PM
  2. 3d object to follow the mouse
    By z3lda in forum Macromedia Director 3D
    Replies: 0
    Last Post: May 18th, 12:36 AM
  3. Please help with follow mouse!
    By Maurice.Hason in forum Macromedia Flash Actionscript
    Replies: 2
    Last Post: February 17th, 11:37 PM
  4. mouse follow problem
    By Nico Filip in forum Macromedia Flash Actionscript
    Replies: 1
    Last Post: January 26th, 11:27 PM
  5. Follow Mouse script?
    By NJ Termite in forum Macromedia Flash Actionscript
    Replies: 0
    Last Post: January 20th, 08:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139