can someone help with brick game ball physics

Hipster_Owl_StudiosHipster_Owl_Studios Member, PRO Posts: 214
edited November -1 in Working with GS (Mac)
hi im working on a brick game and the physics for my ball seem to be off! heres the situation once my ball spawns and collides with a wall it just goes faster and faster till it just bounces off the game!. how can i make my ball actor bounce at a constant rate? any help would be great thanks.

p.s i have tried looking at the gs template but i get nothing? i cant understand the logic they used and every time i try the same it doesn't do anything?

Comments

  • mangaroomangaroo Member Posts: 419
    have you tried turning down restitution of the ball and increasing its density a bit?

    restitution is basically bounciness

    if there is still a problem, try turning it down for the wall too

    i haven't made a brick game so im not sure if restitution is the best thing to use, im sure someone will pitch in and confirm soon - otherwise can use velocities instead of restitution when objects collide [if nothing helps!]
  • Hipster_Owl_StudiosHipster_Owl_Studios Member, PRO Posts: 214
    ok thanks i will try that!
  • RedlerTechRedlerTech Member Posts: 1,583
    constrain attribute - magnitude(self.linearvelocityX,self.linearvelocityY) too the set speed (EX: 250)
  • Hipster_Owl_StudiosHipster_Owl_Studios Member, PRO Posts: 214
    @next gen could you explain more what you mean on that formula i cant see to code it
  • RSCdevRSCdev Member Posts: 50
    Hey edward01,

    Just a tip:

    - Are you using which Behavior? Change Velocity OR Acceleration to get your "ball" or wahtever your using to crash the blocks?

    Btw I recommend using the Change Velocity as if youre using the Acelleration it would be letting your ball become a flashing only on the screen.

    See yah,
  • RUPASRUPAS Member Posts: 823
    hi friend, you solved your problem? I have the solution, write me an email and tell you how to make it work

    my email: rupas30@hotmail.com
Sign In or Register to comment.