Interaction on rotating actor
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

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
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!
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