Off-Center Circlular Motion for Side Detectors
I need to add a couple side detectors to the paddle in my latest project. The problem is that the paddle rotates in a circle around the board, and while I can get the detectors to stay in the middle, I'm having trouble setting them to either side of the paddle and circling properly.
I'm currently setting the Left Side detector's X position to ( X( "paddle" ) - 64 ) + ( Cos([dirValue("paddle") ) ) [dirValue is the arc tangent calculation for the paddle, calculated in a different event)
And Y position to ( Y( "paddle" ) ) - ( Sin(dirValue( "paddle" ) ) )
However what ends up happening is the side detector will STAY to the left off the paddle, instead of rotating to the proper position. For instance, the paddle starts on the bottom of the screen, so after rotating 180 degrees, the side detector should be on the right side of the paddle. The positioning of the paddle also tends to fall off unless it's at 0 or 180 degrees.
Can anyone help my math please?