Constraining an actor to the rotation of another actor

iTopGamesiTopGames Member Posts: 71
edited April 2012 in Working with GS (Mac)
Hi GS Guys, i got another question but before i want to thanks you guys for answering the last ones. Ok i got a problem with the rotation of a constrained actor when the principal actor that is the constrainer rotates, i want it rotates like a hammer head (Constrained actor) with the stick (Principal actor or constrainer). Try to picture the TshirtBooth's tutorial "Constraining one Actor to a specific point on another actor" imagine that the white square rotates, i want the four balls rotate with the square in the same point that they were constrained. Thanks.

Comments

  • iTopGamesiTopGames Member Posts: 71
    edited April 2012
    Hi Bro, i did it, the actor rotates with the rotation of the main actor, but imagine a square corner where is constrained another actor, when the square rotates the actor rotates in the specific X and Y coordinates, it doesn't follow the square's corner, i don't know if i did something wrong, an important fact is that the main actor is a PNG.
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    edited April 2012
    Generally if one object is welded to another object, then they should be just one actor. For example, a hammer is one object (one actor) not two separate actors. Is there a reason that you want one object to be made of two actors?

    If you really need two actors to be constrained together, it requires a little bit of trig to make them rotate together.

    Eventually, GameSalad will have joints. Then what you want will be easier to create. (Although it will still be the case that one object - even if it is made of two parts- should be made with one actor.)
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    edited April 2012
    Your friend,
    Kirkland
    Good memory! (I will try to make sure things do not turn into a repeat of that mess.)
  • iTopGamesiTopGames Member Posts: 71
    Hi Guys, thanks for your comments, i thought it would be easier just a couple of rules simple like magic just like everything here in this amazing software, i hope for a update with more good things, thanks anyway take care.
Sign In or Register to comment.