One actor triggering rotation of another actor
Village Idiot
Member, PRO Posts: 486
I've got this actor slowly rotating clockwise. I have another actor that I want to cause it to rotate in counter clockwise when it collides with it. I've tried a rule, but it doesn't work. Anyone got any ideas on how to do this? Have attached a grab..
Comments
OK, the first problem I see is that the otherwise section is linked to the rule.
So, it will only change the direction if the ball hits it AND game.ok to... is false.
My guess is it isn't false, so it won't trigger.
This is one way to do it: https://www.dropbox.com/s/odpljb6h4qgo2ai/change_rotation.zip
I initially had it outside of the otherwise bit and just on its own underneath that rule.. but it just made the actor stop rotating altogether..
Change Angular Velocity to -Angular Velocity