On a stick

ShanemcShanemc Member Posts: 86
edited November -1 in Working with GS (Mac)
Ok I have a stick actor and a box actor I have the box constrained to the left side of the stick. Now I want the stick to rotate on the end of the stick but one I put the rotate behavior on it the stick rotates and the STUPID box stays there. What am I not doing right.

Thanks Shanemc

Comments

  • ChaserChaser Member Posts: 1,453
    Are you trying to make the box rotate with the stick like the arrow point on a clock hand
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    my kid is disabled...
  • ShanemcShanemc Member Posts: 86
    Yes but it needs to stay on the end of the stick

    Thanks
    Shanemc
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Shanemc said:
    Ok I have a stick actor and a box actor I have the box constrained to the left side of the stick. Now I want the stick to rotate on the end of the stick but one I put the rotate behavior on it the stick rotates and the retarded box stays there. What am I not doing right.

    Thanks Shanemc

    OK not really, but what if he was?
  • ShanemcShanemc Member Posts: 86
    I dont believe I said anything about your kid i was talking About my box :) If I hurt your feelings sorry
  • ChaserChaser Member Posts: 1,453
    Sorry I did an edit, look above

    And Scitunes what's the disabled thing about
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    I don't like the "r" word
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    I actually work with a number of kids with disabilities so it just bugs me.
  • ChaserChaser Member Posts: 1,453
    Nevermind I see the "retarded" word.
  • ShanemcShanemc Member Posts: 86
    Chaser said:
    Are you trying to make the box rotate with the stick like the arrow point on a clock hand

    Yes that is correct
  • ChaserChaser Member Posts: 1,453
    scitunes said:
    I don't like the "r" word

    scitunes said:
    I don't like the "r" word

    +1
  • ShanemcShanemc Member Posts: 86
    scitunes said:
    I don't like the "r" word

    I did a edit just for you
  • ChaserChaser Member Posts: 1,453
    Sorry my comments are delayed low reception here and Scitunes my son is on the spectrum.
    A couple ways to do it 1 make a graphic of your stick with box at end but make it so that there is actually an invisible half of the graphic so it rotates like a clock hand or you could do some math which I can't help you with or I think there is a tutorial that has the math for objects rotating around an actor.
  • AsymptoteellAsymptoteell Member Posts: 1,362
    you can just constrain the box's x position to the sticks position x * cos(stick's rotation) and the y to stick's y position * sin(stick's rotation)

    Trigonometry saves the day!
  • ShanemcShanemc Member Posts: 86
    Thanks for the help
  • ShanemcShanemc Member Posts: 86
    Ok so I'm doing something wrong I don't under stand where i get the rotation from
  • AsymptoteellAsymptoteell Member Posts: 1,362
    Constrain a game attribut to the sticks rotation, and use that game attribute.
Sign In or Register to comment.