Search Unity

Adding a force impulse via powerbar (slider)

Discussion in 'UGUI & TextMesh Pro' started by RT3DViz, Jul 28, 2016.

  1. RT3DViz


    Apr 15, 2015
    Hi there,

    i want to dive deeper into unity. my knowledge in scripting and UI-Stuff is very low, so i am asking the wonderfull unity-community. My problem contains, as mentioned above, UI-Stuff and scripting. Let me explain my Issue.

    I have balls in my scene and those balls should be thrown by the player (3 balls for each player) via 2 sliderbars. 1 for the direction left and right and one for the power (how far the balls should be thrown). my beginnings in testing how to add a force impulse to the ball werent a completely desaster but over all it didnt work that good :D

    and combining those tests with a unity sliderbar is completely overcharging me :)
    can some1 help me with advises or code ? this would be great.