Interaction on rotating actor

sebmacflysebmacfly Member Posts: 1,018
edited November -1 in Working with GS (Mac)
Hi! :)

I have an actor rotating (it's a rotating platform).
I don't want the other actors to affect this rotation when collide with that platform... (even if i change the density to a big number like 999999999999)
No problem with tha position X and Y, i use the constrain attribute for that.
I don't use the constrain attribute for the rotation because the other actors are not bouncing on it... i have to use the rotate behavior.

Any help please?

Thank you

Comments

  • sebmacflysebmacfly Member Posts: 1,018
    Up
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    you can check fixed rotation and then have a rule when self rotation=0, interpolate self rotation to 360. That will give u a continuous rotation and wont be affected by any other actors. You probably could also constrain the angular velocity to whatevre you want
  • firemaplegamesfiremaplegames Member Posts: 3,211
    Try this:

    In the rotating Actor:

    Set the Density to 1000
    Create two integer attributes: initX and initY

    Then add these behaviors:

    Change Attribute: self.initX to: self.PositionX
    Change Attribute: self.initY to: self.PositionY

    Constrain Attribute: self.PositionX to: self.initX
    Constrain Attribute: self.PositionY to: self.initY

    Constrain Attribute: self.Motion.Linear.X to: 100
    Constrain Attribute: self.Motion.Linear.Y to: 100

    Rotate: speed 100

    That will do what you want, but perhaps there is a more efficient way with less Constrains?

    Hope this helps!
    Joe

    EDIT: Nevermind, use John's idea. That works and with no Constrains!
  • sebmacflysebmacfly Member Posts: 1,018
    Hi!

    Thanks for the answer,

    John, your method is good but i have some balls falling on that rotatig actor...
    And the reaction (bounces) on this actor is not good, no bounces. (like the ball stay pasted on the rotating actor)
    I have to use rotate behavior

    @firemaplegames
    I'm doing your way but on't work :(
Sign In or Register to comment.