Skip to content

Commit

Permalink
Added some example scenes
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveBarnegren committed Jul 5, 2020
1 parent ffdba21 commit 9b727a1
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 20 deletions.
1 change: 1 addition & 0 deletions Example Scenes/Lines.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"boundaries":[{"orientation":2,"value":10,"isEnabled":true,"elasticity":1},{"orientation":1,"value":390,"isEnabled":true,"elasticity":1},{"orientation":3,"value":290,"isEnabled":false,"elasticity":1},{"orientation":0,"value":10,"isEnabled":true,"elasticity":1}],"circles":[],"lines":[{"start":{"x":46.957764847512038,"y":266.53541332263239},"end":{"x":88.157102728731942,"y":251.81330256821832},"elasticity":1},{"start":{"x":97.213583467094693,"y":218.64967897271268},"end":{"x":143.02768860353129,"y":240.95355136436595},"elasticity":1},{"start":{"x":41.886536918138042,"y":213.51324237560195},"end":{"x":77.972010433386842,"y":194.48986757624397},"elasticity":1},{"start":{"x":81.786717495987162,"y":158.85333065810593},"end":{"x":130.36215890850721,"y":149.7918338683788},"elasticity":1},{"start":{"x":143.64466292134833,"y":176.38443017656502},"end":{"x":181.47572231139645,"y":185.70174558587482},"elasticity":1},{"start":{"x":162.90880818619581,"y":219.95385232744783},"end":{"x":203.52628410914929,"y":210.67666532905298},"elasticity":1},{"start":{"x":222.89075040128412,"y":156.29514446227927},"end":{"x":267.53109951845909,"y":172.44933788121989},"elasticity":1},{"start":{"x":210.18007624398072,"y":241.50782504012841},"end":{"x":246.38593499197432,"y":231.56099518459067},"elasticity":1},{"start":{"x":235.59891653290526,"y":191.13162118780096},"end":{"x":283.33918539325845,"y":199.56360353130015},"elasticity":1},{"start":{"x":291.36235955056179,"y":251.06340288924557},"end":{"x":318.20575842696627,"y":243.56942215088284},"elasticity":1},{"start":{"x":372.04805377207066,"y":237.10122391653292},"end":{"x":342.0244783306581,"y":222.55969101123597},"elasticity":1},{"start":{"x":310.00200642054574,"y":205.53019662921349},"end":{"x":324.85453451043338,"y":171.21538924558587},"elasticity":1},{"start":{"x":184.76374398073835,"y":148.38984751203853},"end":{"x":175.09781300160515,"y":107.48896468699839},"elasticity":1},{"start":{"x":63.62610353130016,"y":125.31851926163725},"end":{"x":98.876404494382015,"y":109.38001605136436},"elasticity":1},{"start":{"x":58.477126805778489,"y":67.262740770465498},"end":{"x":94.863563402889255,"y":52.706159711075443},"elasticity":1},{"start":{"x":14.117676565008026,"y":117.38814205457463},"end":{"x":42.954955858747994,"y":110.87730738362761},"elasticity":1},{"start":{"x":12.95395264847512,"y":182.16542937399677},"end":{"x":33.943619582664525,"y":164.05748394863562},"elasticity":1},{"start":{"x":130.67315409309793,"y":77.854133226324237},"end":{"x":159.81139646869985,"y":74.954855537720704},"elasticity":1},{"start":{"x":222.16342295345103,"y":89.24558587479936},"end":{"x":244.88111958266452,"y":94.226524879614757},"elasticity":1},{"start":{"x":266.27457865168537,"y":139.51143659711076},"end":{"x":296.22040529695022,"y":134.20445425361157},"elasticity":1},{"start":{"x":374.89717094703047,"y":174.96488764044946},"end":{"x":361.35884831460675,"y":169.80337078651687},"elasticity":1},{"start":{"x":322.36155698234347,"y":99.061998394863565},"end":{"x":349.97491974317813,"y":90.158507223113958},"elasticity":1},{"start":{"x":345.80908908507223,"y":135.26284109149279},"end":{"x":330.92144863563402,"y":132.76233948635635},"elasticity":1},{"start":{"x":276.1938202247191,"y":83.166131621187802},"end":{"x":305.64305778491172,"y":66.482744783306586},"elasticity":1},{"start":{"x":219.06350321027287,"y":63.174658908507219},"end":{"x":193.1004213483146,"y":55.713282504012838},"elasticity":1},{"start":{"x":132.85513643659712,"y":40.80808587479936},"end":{"x":161.38392857142858,"y":36.787720706260032},"elasticity":1},{"start":{"x":37.181480738362758,"y":44.123695826645267},"end":{"x":53.925060192616371,"y":38.789125200642054},"elasticity":1},{"start":{"x":136.57704654895667,"y":112.23916532905297},"end":{"x":145.97211075441413,"y":122.72522070626002},"elasticity":1},{"start":{"x":260.93499197431782,"y":35.360654093097914},"end":{"x":285.5111356340289,"y":40.592395666131623},"elasticity":1},{"start":{"x":344.74317817014446,"y":43.875401284109145},"end":{"x":362.53009630818622,"y":51.128611556982342},"elasticity":1}],"gravity":-600,"balls":[],"polyLines":[],"enableBallCollisions":true}
1 change: 1 addition & 0 deletions Example Scenes/MoonGolf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"boundaries":[{"orientation":2,"value":10,"isEnabled":true,"elasticity":1},{"orientation":1,"value":390,"isEnabled":true,"elasticity":1},{"orientation":3,"value":290,"isEnabled":false,"elasticity":1},{"orientation":0,"value":10,"isEnabled":true,"elasticity":1}],"circles":[],"lines":[{"start":{"x":336.84210526315792,"y":110.5263157894737},"end":{"x":336.84210526315792,"y":86.842105263157904},"elasticity":1}],"gravity":-144.57236842105263,"balls":[],"polyLines":[{"points":[{"x":10.779494382022472,"y":10.792034510433387},{"x":18.421052631578966,"y":15.789473684210526},{"x":26.315789473684227,"y":31.578947368421051},{"x":50.000000000000014,"y":31.578947368421051},{"x":57.894736842105281,"y":15.789473684210526},{"x":73.684210526315809,"y":15.789473684210526},{"x":81.578947368421069,"y":23.684210526315788},{"x":89.473684210526329,"y":23.684210526315788},{"x":105.26315789473685,"y":39.473684210526315},{"x":128.94736842105266,"y":39.473684210526315},{"x":144.73684210526318,"y":23.684210526315788},{"x":160.5263157894737,"y":23.684210526315788},{"x":223.68421052631581,"y":15.789473684210526},{"x":272.2687600321027,"y":17.039526484751203},{"x":294.73684210526318,"y":86.84210526315789},{"x":318.42105263157896,"y":86.84210526315789},{"x":318.42105263157896,"y":71.05263157894737},{"x":326.31578947368422,"y":63.157894736842103},{"x":334.21052631578948,"y":71.05263157894737},{"x":334.21052631578948,"y":86.842105263157904},{"x":357.89473684210526,"y":86.84210526315789},{"x":381.57894736842104,"y":15.789473684210526},{"x":389.56410513643658,"y":10.142455858747994}]},{"points":[{"x":336.84210526315792,"y":110.5263157894737},{"x":344.73684210526318,"y":107.89473684210527},{"x":336.84210526315792,"y":105.26315789473685}]}],"enableBallCollisions":true}
1 change: 1 addition & 0 deletions Example Scenes/Snooker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"boundaries":[{"orientation":2,"value":10,"isEnabled":true,"elasticity":1},{"orientation":1,"value":390,"isEnabled":true,"elasticity":1},{"orientation":3,"value":290,"isEnabled":true,"elasticity":1},{"orientation":0,"value":10,"isEnabled":true,"elasticity":1}],"circles":[],"lines":[],"gravity":-0,"balls":[{"radius":5,"affectedByPhysics":true,"previousPosition":{"x":269.15896283532044,"y":149.97205663189268},"elasticity":0.69999999999999996,"velocity":{"x":0,"y":0},"position":{"x":269.15896283532044,"y":149.97205663189268}},{"radius":5,"affectedByPhysics":true,"previousPosition":{"x":280.64543358792844,"y":155.74847475782414},"elasticity":0.69999999999999996,"velocity":{"x":0,"y":0},"position":{"x":280.64543358792844,"y":155.74847475782414}},{"radius":5,"affectedByPhysics":true,"previousPosition":{"x":280.63408159463484,"y":144.11617455290613},"elasticity":0.69999999999999996,"velocity":{"x":0,"y":0},"position":{"x":280.63408159463484,"y":144.11617455290613}},{"radius":5,"affectedByPhysics":true,"previousPosition":{"x":292.22272028688525,"y":149.93625419150521},"elasticity":0.69999999999999996,"velocity":{"x":0,"y":0},"position":{"x":292.22272028688525,"y":149.93625419150521}},{"radius":5,"affectedByPhysics":true,"previousPosition":{"x":292.21835413561848,"y":161.4873439828614},"elasticity":0.69999999999999996,"velocity":{"x":0,"y":0},"position":{"x":292.21835413561848,"y":161.4873439828614}},{"radius":5,"affectedByPhysics":true,"previousPosition":{"x":292.14587602459011,"y":138.16336391579733},"elasticity":0.69999999999999996,"velocity":{"x":0,"y":0},"position":{"x":292.14587602459011,"y":138.16336391579733}},{"radius":5,"affectedByPhysics":true,"previousPosition":{"x":303.77817622950818,"y":167.26376210879286},"elasticity":0.69999999999999996,"velocity":{"x":0,"y":0},"position":{"x":303.77817622950818,"y":167.26376210879286}},{"radius":5,"affectedByPhysics":true,"previousPosition":{"x":303.75634547317435,"y":155.80960087555886},"elasticity":0.69999999999999996,"velocity":{"x":0,"y":0},"position":{"x":303.75634547317435,"y":155.80960087555886}},{"radius":5,"affectedByPhysics":true,"previousPosition":{"x":303.90304815573768,"y":144.33710180700447},"elasticity":0.69999999999999996,"velocity":{"x":0,"y":0},"position":{"x":303.90304815573768,"y":144.33710180700447}},{"radius":5,"affectedByPhysics":true,"previousPosition":{"x":303.7773029992548,"y":132.78688524590163},"elasticity":0.69999999999999996,"velocity":{"x":0,"y":0},"position":{"x":303.7773029992548,"y":132.78688524590163}}],"polyLines":[{"points":[{"x":24.390243902439018,"y":256.09756097560978},{"x":46.341463414634141,"y":256.09756097560978},{"x":53.658536585365844,"y":241.46341463414635},{"x":185.36585365853659,"y":241.46341463414635},{"x":178.04878048780489,"y":256.09756097560978},{"x":185.36585365853659,"y":263.41463414634148},{"x":214.63414634146343,"y":263.41463414634148},{"x":221.95121951219514,"y":256.09756097560978},{"x":214.63414634146343,"y":241.46341463414635},{"x":346.34146341463418,"y":241.46341463414635},{"x":353.65853658536588,"y":256.09756097560978},{"x":375.60975609756099,"y":256.09756097560978},{"x":375.60975609756099,"y":234.14634146341464},{"x":360.97560975609758,"y":226.82926829268294},{"x":360.97560975609758,"y":73.170731707317074},{"x":375.60975609756099,"y":65.853658536585371},{"x":375.60975609756099,"y":43.902439024390247},{"x":353.65853658536588,"y":43.902439024390247},{"x":346.34146341463418,"y":58.536585365853661},{"x":214.63414634146343,"y":58.536585365853661},{"x":221.95121951219514,"y":43.902439024390247},{"x":214.63414634146343,"y":36.585365853658537},{"x":185.36585365853659,"y":36.585365853658537},{"x":178.04878048780489,"y":43.902439024390247},{"x":185.36585365853659,"y":58.536585365853661},{"x":53.658536585365844,"y":58.536585365853661},{"x":46.341463414634141,"y":43.902439024390247},{"x":24.390243902439018,"y":43.902439024390247},{"x":24.390243902439018,"y":65.853658536585371},{"x":39.024390243902431,"y":73.170731707317074},{"x":39.024390243902431,"y":226.82926829268294},{"x":24.390243902439018,"y":234.14634146341464},{"x":24.390243902439018,"y":256.09756097560978}]}],"enableBallCollisions":true}
1 change: 0 additions & 1 deletion Example Scenes/TestScene1.json

This file was deleted.

1 change: 0 additions & 1 deletion Example Scenes/TestScene2.json

This file was deleted.

1 change: 0 additions & 1 deletion Example Scenes/TestScene3.json

This file was deleted.

Loading

0 comments on commit 9b727a1

Please sign in to comment.