In after the collision of two spheres, not to change speed, the only changedirection.Excuse mecando?

againagain Member Posts: 25

In after the collision of two spheres, not to change speed, the only change direction.Excuse me ,cando?

«1

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited May 2014

    Turn 'friction' to 0 for both actors.

  • againagain Member Posts: 25

    Thank you for your answer,but, after the two colliding balls, still can produce acceleration or deceleration,Like play billiards, two ball impact likely scenario,Speed change

  • SocksSocks London, UK.Member Posts: 12,822
    edited May 2014

    @again said:
    Thank you for your answer,but, after the two colliding balls, still can produce acceleration or deceleration,Like play billiards, two ball impact likely scenario,Speed change

    I don't understand the question ? :\

    . . . . .

    No speed change.

    GameSalad Project ►► https://www.mediafire.com/?zcjfgdgz1cdyo4s

    . . . . .

    . . . . .

    Deceleration (like in real life).

    GameSalad Project ►► https://www.mediafire.com/?7mjj8iriefht4nd

    . . . . .

  • againagain Member Posts: 25

    How to add images

  • SocksSocks London, UK.Member Posts: 12,822

    @again said:
    How to add images

    Did you take a look at the GameSalad projects I made for you ?

  • againagain Member Posts: 25

    My consciousness is in the reply
    How to add images

  • againagain Member Posts: 25

    I drew a few simple pictures

  • againagain Member Posts: 25

    How to add images in the reply of My consciousness.Don't add images in the software.
    I drew a few simple pictures

  • againagain Member Posts: 25

    May be post a NEW message,i know add The image.Reply to the top of the column,The last one is image URL,but Can't choose the image file.I try to fill in the image addresses
    of computer,after ENTER,but Have no reaction

  • SocksSocks London, UK.Member Posts: 12,822

    @again said:
    My consciousness is in the reply
    How to add images

    Mysterious ! :)

    Did you take a look at the files I made for you ?

  • againagain Member Posts: 25

    YES,i look.I did at first.Back and forth Round and rectangle of try.Because at first I use circle there was a problem.Even if the incident Angle isnot 0,but Close to zero,Touching the walls on both sides will still at 0 degrees Angle,About the ejection.To rectangle is not the problem.The friction to 0 after read after your opinion,still have the problem.but After the restart computer,The problem had disappeared,Don't know if I accidentally changed where,Perhaps the friction effect of 0,But the software didn't react in the first time? At least about springback is solved in the incident Angle is not zero.
    Now want to solve the problem of trying to use images to express
    but idon*t add image in the reply

  • againagain Member Posts: 25

    i try Create a new post,Don't add image too

  • SocksSocks London, UK.Member Posts: 12,822
    edited May 2014

    @again said:
    YES,i look

    >

    After the restart computer,The problem had disappeared

    >

    Now want to solve the problem of trying to use images to express

    It would be useful to say whether a response to your question has worked or not worked, or at least acknowledge that you've even read it before moving on to the next thing you want.

  • againagain Member Posts: 25

    I want to effect:Before the collision speed 200.The speed 200 after the collision。
    In fact :Before the collision speed 200. The Speed change after the collision。
    May be 12 speed, 35 speed , 116 speed Or 356 speed.~~~~......
    speed is changing

  • SocksSocks London, UK.Member Posts: 12,822
    edited May 2014

    You've not said which actor you want to remain at a constant speed after a collision, so I will presume it is both.

    Game attributes:

    X

    Y

    . . . .

    Ball 1:

    Constrain game.x to self.Position X

    Constrain game.y to self.Position Y

    Change self.motion.linear.velocity.x to SPEED

    Change self.motion.linear.velocity.y to SPEED

    . . . .

    Ball 2:

    Rule: When ball 2 overlaps or collides with ball 1 . . .

    Change self.motion.linear.velocity.x to (1.414 * SPEED) * cos(vectorToAngle( self.Position.X - game.X , self.Position.Y - game.Y ))


    Change self.motion.linear.velocity.y to (1.414 * SPEED) * sin(vectorToAngle( self.Position.X - game.X , self.Position.Y - game.Y ))

    . . . .

    Both actors:

    Density - 1

    Friction - 0

    Bounciness - 0

    Drag - 0

    Angular Drag - 0

  • againagain Member Posts: 25

    I don't know ,can do it?

  • SocksSocks London, UK.Member Posts: 12,822
    edited May 2014

    @again said:
    I don't know ,can do it?

    Which country are you from ?

    Did you try what I suggested ?

  • SocksSocks London, UK.Member Posts: 12,822

  • SocksSocks London, UK.Member Posts: 12,822

    @jonmulcahy said:
    lol

    ?

    :) ? This thread is getting weird ! :D

  • againagain Member Posts: 25

    I am a Chinese
    I'm sorry, I don't understand English grammar,Know A small amount of words
    The dictionary to find the words
    Sentences were written by feel mess
    I want is you this effect
    My ball is filled with physics
    Speed changed a lot ,The acceleration or deceleration。Change is big。
    I will try your method。
    Thank you very much

  • againagain Member Posts: 25

    Excuse me,I write the effect is different from yours。I have a question。 define “integer”or “angle” to game X and game Y? The same effect as to All attempts
    ALL : density 1 friction 0 bounciness 1
    ball 1:game X = BALL 1 position X game Y = BALL 1 position Y
    Motion linear velocity X 200 Motion linear velocity Y -200
    Ball 2: any collides acter of type ball 1
    Motion linear velocity X to
    282.8 *Cos(vectorToAngle(BALL2 position X-Game ball1 X,Ball2 position Y-game Ball 1Y)
    Motion linear velocity Y to
    282.8 *Sin(vectorToAngle(BALL2 position X-Game ball1 X,Ball2 position Y-game Ball 1Y)
    wall collide and collide
    The effect : ball 1 velocity =200
    if ball 1 paly ball 2
    ball2 Along the X axis, The left and right back and forth movement.
    I didn't see ball2 have fixed Y to code,but Fixed in the Y.

  • againagain Member Posts: 25

    And the ball 2 has been change to big

  • againagain Member Posts: 25

    Just found A piece of code on video.Only see the video。
    Changed the bounciness 0.The same effect as。
    ball 2 fixed in the y

  • againagain Member Posts: 25

    Input window effect is different from the display window。。。。All messed up

  • SocksSocks London, UK.Member Posts: 12,822
  • againagain Member Posts: 25

    unsupported file format.the file is newer than this version of creator
    ........................
    MY GS is in window 7

  • againagain Member Posts: 25

    :|

  • SocksSocks London, UK.Member Posts: 12,822

    @again said:
    :|

    Would you like me to take a screenshot (picture) of the rules for you ?

  • againagain Member Posts: 25

    can windows 7 system use your GS version ?

Sign In or Register to comment.