collision and a rotating flipper
Megaemman
Member, PRO Posts: 72
Hey for a collision between a ball and flipper would this work ?
For ball
of course already having collision and acceleration(gravity)
already in
create self attribute :integer ( how close to flipper) set to 50-100 pixels
create rule
attribute self.how close to flipper is > to magnitude(self.positionx-game or scene position x,self.flipper.position.y- game or scene.flipper.position.y) when actor overlaps or collides with flipper
change velocity
direction: vectortoangle(blah blah) relative to: scene
acceleration : 800
rotate to angle :
direction: vectortoangle (blah blah) relative to scene
acceleration: 800
Just wondering if that would help with detection with the flipper.
For ball
of course already having collision and acceleration(gravity)
already in
create self attribute :integer ( how close to flipper) set to 50-100 pixels
create rule
attribute self.how close to flipper is > to magnitude(self.positionx-game or scene position x,self.flipper.position.y- game or scene.flipper.position.y) when actor overlaps or collides with flipper
change velocity
direction: vectortoangle(blah blah) relative to: scene
acceleration : 800
rotate to angle :
direction: vectortoangle (blah blah) relative to scene
acceleration: 800
Just wondering if that would help with detection with the flipper.
Comments