Boucing an object to a specific angle

blamekillyblamekilly Member Posts: 5
edited November -1 in Working with GS (Mac)
Hello !
I'm trying to recreate Pong rules with the specific boucing angles according to where the ball hits the paddle but I feel a bit lost between all the attributes and behaviours.

How can I define a specific angle for the ball to bounce and keeping it's original speed ? I try no to use physic on the ball in order to have a very strict control over it !

Thanks

Comments

  • BrynjeBamsenBrynjeBamsen Member Posts: 188
    there is a very good demo in the GS library. but.
    GS will do most of the work for you in this case.

    on your paddle, it should a standard collide shape set to square and set restitution to 1

    On your ball change collide shape to round and set drag = 0

    If the ball comes in at a steep angle GS bounce it accordingly
  • blamekillyblamekilly Member Posts: 5
    I used the the Linear.Velocity to create some bouncing rules of my own but I need to teleport my object and so going rotate it (and it's current "Velocities") by 90 or 180 degrees.

    I really don't know how to calculate an angle from these informations in order to increase-decrease it !
    Please someone help me : /
Sign In or Register to comment.