Graphics

 View Only
  • 1.  'Plinko' game on Xpression

    Posted 08-14-2014 16:44
    Ok, imagine you are playing Plinko (from the price is right) during a time out of an NBA game. Can Xpression cause interaction between objects? For example, can I build a flattened column representing the puck that will interact with another object and "bounce" off of it?


  • 2.  RE: 'Plinko' game on Xpression

    Posted 08-17-2014 14:28
    That sounds extremely difficult to accomplish.. I'm sure with enough coding someone might be able to accomplish it however..

    #XPression


  • 3.  RE: 'Plinko' game on Xpression

    Posted 08-18-2014 03:59
    Whew, thank you Brian. That's all I need to know.

    #XPression


  • 4.  RE: 'Plinko' game on Xpression

    Posted 08-26-2014 15:53
    To animate a bouncing ball I created a text object called 'Values' which stores the current velocity on the x and y axis. Then I put a script on the 4th frame of my animation controller which;

    -Read the old values

    -Applied gravitational constant

    -Checked for contact with the walls/floor to bounce (check if current position is out of bounds)

    -Checked for contact with a quad which relaunches the ball (check if current position of ball is within a certain distance from quad center)

    -Added the velocity values to the x/y position of the ball

    -Stored the new velocity

    -Jumped to frame one

    -Repeats

    #XPression