Rotate Problem

fullviewmediafullviewmedia Member Posts: 92
edited November -1 in Working with GS (Mac)
I have an actor that I can drag an rotate, I want another actor to copy the rotation. Can anyone help.

Thanks

John

Comments

  • StusAppsStusApps Member, PRO Posts: 1,352
    If the actors are both already on screen then double click the second actor to unlock it and constrain attribute it's rotation to the other one.

    If they are not immediately in the same scene then create an integer attribute, constrain it to the original actors rotation. Then constrain the new actors rotation to the attribute.
  • fullviewmediafullviewmedia Member Posts: 92
    I have it rotating with the actor the issue I have now is the second actor is 100x10px and I want it to rotate with actor 1 but stick to the top of the actor. basically its a funnel and a hit point, if the water droplet hits the top of the funnel it spawns a droplet at the bottom to give the impression of passing through. I want the hit point to rotate with the funnel but align to the top if you get me :)

    Thanks

    John
  • fullviewmediafullviewmedia Member Posts: 92
    This is a stressful one, does anyone know anything about this please, :)

    Thanks

    John
  • fullviewmediafullviewmedia Member Posts: 92
    I may have not explained this well, it's basically a hit area on a actor. The issue is it needs to be on onside of the actor even when the actor rotates. Can anyone help or point me in the right direction please

    Thanks

    John
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    So you want it to be outside the main actor and rotate around the main actor as the main actor rotates?
  • fullviewmediafullviewmedia Member Posts: 92
    just inside the actor 1 is 100 x 100 and actor 2 is 100 x 10 to hold to one side just within leaving a 5px x 100 area showing for collision rule, so anything hitting actor one on the other 3 sides will just bounce off but on the 4th side will be destroyed.

    Thanks

    John
  • fullviewmediafullviewmedia Member Posts: 92
    The actor 1 can be rotated, imagine a bucket where water can only enter 1 face of 4, bucket can be any rotation. Thought this may help.
  • StusAppsStusApps Member, PRO Posts: 1,352
    would it work to make one actor 100x100 and the other like 110x95. Then constrain the two together. That way it will be completely contained inside the other (as it is 95) except for the 110 length which will stick out and be collidable. Obviously your drawn graphic doesn't have to fill this whole size, just give it enough transparent padding for the other bit.

    If that makes sense.
  • StusAppsStusApps Member, PRO Posts: 1,352
    otherwise you are talking about setting a point of rotation outside of the actual actor for the second one. I believe this was discussed some time ago in a complicated template, but it wasn't easy.
  • StusAppsStusApps Member, PRO Posts: 1,352
    hang on, my idea won't work.

    it's just gonna stick out 5 pixels either end. Stratch that.
  • fullviewmediafullviewmedia Member Posts: 92
    issue I have is the actor one is a funnel, triangle shape with a squared top, the actor 2 needs to be positioned to make it look like when water droplets hit it they go inside (get destroyed) then re spawn out the bottom.
  • fullviewmediafullviewmedia Member Posts: 92
    I am tempted to re write the actor to do something else, shame as I really want this to work.
  • simo103simo103 Member, PRO Posts: 1,331
    I may have this completely wrong so few free to brush this aside if that is the case ;^).

    I saw a ferris wheel template once that had small secondary actors moving with the outer shape of the main actor in rotation. Could you perhaps pull that and use a few small actors next to each other only on the one edge?
  • fullviewmediafullviewmedia Member Posts: 92
    I'll have a look and see, thanks
  • fullviewmediafullviewmedia Member Posts: 92
    I just don't get it, it seems like this is a common thing to try and do, stick a hit area to the side of and actor which rotates with it :) Anyone?
  • simo103simo103 Member, PRO Posts: 1,331
    how about search "floating shield"?
Sign In or Register to comment.