Query using vector to angle on a rotating flipper
Megaemman
Member, PRO Posts: 72
Using this I was wondering if it was possible to have a ball fling off a rotating flipper (teeter-totter) paddle o was wondering if flipper x and flipper y needs to be put inside the flipper
I have three real attributes
Flipper-Angullar velocity
Flipper x and flipper y (maybe it should be self.position.x and selfposition y for the flippers ?
contstrain attribute: game.Flipper_Angular_Velocity to self.angularvelocity
In the Ball
RULE
When ball collides with actor FLIPPER Attribute self.angularvelocity is >100
Accelerate behavoir
Direction: vectortoangle (self.positionX - game.flipperX,self.positionY - game.flipperY)
Speed: game.Flipper_Angular_Velocity
Or would it be easier to just leave the ball alone and get the paddle to rotate fast enough to get the ball to accelerate at the desired position ?
Perhaps it's not acceleration maybe it's change velocity
I'll continue to tinker
I have three real attributes
Flipper-Angullar velocity
Flipper x and flipper y (maybe it should be self.position.x and selfposition y for the flippers ?
contstrain attribute: game.Flipper_Angular_Velocity to self.angularvelocity
In the Ball
RULE
When ball collides with actor FLIPPER Attribute self.angularvelocity is >100
Accelerate behavoir
Direction: vectortoangle (self.positionX - game.flipperX,self.positionY - game.flipperY)
Speed: game.Flipper_Angular_Velocity
Or would it be easier to just leave the ball alone and get the paddle to rotate fast enough to get the ball to accelerate at the desired position ?
Perhaps it's not acceleration maybe it's change velocity
I'll continue to tinker
Comments
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Lump Apps and My Assets
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS