From 94cfd1bab88a9e6019235473e6d4407acaf2e7aa Mon Sep 17 00:00:00 2001 From: auria Date: Tue, 18 Nov 2008 01:29:22 +0000 Subject: [PATCH] improved plunger to point in right direction and allow shooting backwards git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2471 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- data/models/plunger.ac | 653 +++++++++++++++++----------------- src/flyable.cpp | 12 +- src/flyable.hpp | 3 +- src/items/plunger.cpp | 20 +- src/items/powerup_manager.cpp | 2 - 5 files changed, 354 insertions(+), 336 deletions(-) diff --git a/data/models/plunger.ac b/data/models/plunger.ac index 545fbca36..86308af46 100644 --- a/data/models/plunger.ac +++ b/data/models/plunger.ac @@ -1,5 +1,6 @@ AC3Db MATERIAL "DefaultWhite" rgb 1 1 1 amb 1 1 1 emis 0 0 0 spec 0.5 0.5 0.5 shi 64 trans 0 +MATERIAL "DefaultWhite.001" rgb 1 1 1 amb 1 1 1 emis 0 0 0 spec 0.5 0.5 0.5 shi 64 trans 0 OBJECT world kids 1 OBJECT poly @@ -10,1409 +11,1409 @@ texture "plunger.rgb" texrep 1 1 crease 30.000000 numvert 110 -0.097849 -0.4 -0.192516 -0.194587 -0.4 -0.095779 -0.20651 -0.4 0.040509 -0.128041 -0.4 0.152576 --0.004106 -0.4 0.187984 --0.128096 -0.4 0.130167 --0.185914 -0.4 0.006176 --0.150505 -0.4 -0.12597 --0.038439 -0.4 -0.20444 -0.133642 -0.373611 -0.133642 -0.183151 -0.373611 -0.027469 -0.152831 -0.373611 0.085689 -0.056868 -0.373611 0.152883 --0.059835 -0.373611 0.142672 --0.142672 -0.373611 0.059835 --0.152883 -0.373611 -0.056868 --0.085689 -0.373611 -0.152831 -0.027469 -0.373611 -0.183152 -0.067922 -0.258017 -0.128338 -0.129659 -0.258017 -0.066601 -0.137269 -0.258017 0.020377 -0.08719 -0.258017 0.091897 -0.002855 -0.258017 0.114494 --0.076274 -0.258017 0.077595 --0.113173 -0.258017 -0.001534 --0.090575 -0.258017 -0.085869 --0.019055 -0.258017 -0.135948 -0.062737 -0.226821 -0.062737 -0.082625 -0.226821 -0.020089 -0.070445 -0.226821 0.025365 -0.031898 -0.226821 0.052356 --0.01498 -0.226821 0.048254 --0.048254 -0.226821 0.01498 --0.052356 -0.226821 -0.031898 --0.025365 -0.226821 -0.070445 -0.020089 -0.226821 -0.082625 -0.169215 -0.335715 -0.084377 -0.086154 -0.335715 -0.167437 -0.179452 -0.335715 0.032642 -0.112077 -0.335715 0.128864 --0.001385 -0.335715 0.159266 --0.107845 -0.335715 0.109623 --0.157488 -0.335715 0.003163 --0.127086 -0.335715 -0.110299 --0.030864 -0.335715 -0.177675 -0.032127 -0.178991 -0.051576 -0.052001 -0.178991 -0.031702 -0.054451 -0.178991 -0.003703 -0.03833 -0.178991 0.01932 -0.011182 -0.178991 0.026595 --0.014291 -0.178991 0.014716 --0.026169 -0.178991 -0.010756 --0.018895 -0.178991 -0.037905 -0.004128 -0.178991 -0.054026 -0.043566 -0.139408 -0.043567 -0.055445 -0.139408 -0.018094 -0.04817 -0.139408 0.009055 -0.025147 -0.139408 0.025176 --0.002852 -0.139408 0.022726 --0.022726 -0.139408 0.002852 --0.025176 -0.139408 -0.025147 --0.009055 -0.139408 -0.04817 -0.018094 -0.139408 -0.055445 -0.024359 -0.131161 -0.034918 -0.035149 -0.131161 -0.024129 -0.036478 -0.131161 -0.008929 -0.027727 -0.131161 0.00357 -0.012989 -0.131161 0.007519 --0.00084 -0.131161 0.001071 --0.007288 -0.131161 -0.012758 --0.003339 -0.131161 -0.027496 -0.009159 -0.131161 -0.036248 -0.035287 0.420355 -0.023833 -0.036616 0.420355 -0.008633 -0.027865 0.420355 0.003866 -0.013127 0.420355 0.007815 --0.000702 0.420355 0.001367 --0.00715 0.420355 -0.012462 --0.003201 0.420355 -0.0272 -0.009297 0.420355 -0.035952 -0.024497 0.420355 -0.034622 -0.030817 0.4319 -0.015732 -0.026304 0.4319 -0.025409 -0.028053 0.4319 -0.005418 -0.019307 0.4319 0.000706 -0.008671 0.4319 -0.000225 -0.001121 0.4319 -0.007775 -0.00019 0.4319 -0.018411 -0.006314 0.4319 -0.027157 -0.016628 0.4319 -0.029921 -0.015503 0.438774 -0.014608 -0.118153 -0.389796 -0.118153 -0.161191 -0.389796 -0.025857 -0.134834 -0.389796 0.072511 -0.051413 -0.389796 0.130922 --0.050037 -0.389796 0.122047 --0.122047 -0.389796 0.050037 --0.130922 -0.389796 -0.051413 --0.072511 -0.389796 -0.134834 -0.025857 -0.389796 -0.161191 -0.015134 -0.200755 -0.015134 -0.168142 -0.295572 -0.026367 -0.123055 -0.295572 -0.123055 -0.14053 -0.295572 0.076682 -0.05314 -0.295572 0.137873 --0.053138 -0.295572 0.128575 --0.128575 -0.295572 0.053138 --0.137873 -0.295572 -0.05314 --0.076682 -0.295572 -0.14053 -0.026367 -0.295572 -0.168142 +0.097849 0.18122 -0.42544 +0.194587 0.084483 -0.42544 +0.20651 -0.051805 -0.42544 +0.128041 -0.163872 -0.42544 +-0.004106 -0.19928 -0.42544 +-0.128096 -0.141463 -0.42544 +-0.185914 -0.017472 -0.42544 +-0.150505 0.114674 -0.42544 +-0.038439 0.193144 -0.42544 +0.133642 0.122346 -0.399051 +0.183151 0.016173 -0.399051 +0.152831 -0.096985 -0.399051 +0.056868 -0.164179 -0.399051 +-0.059835 -0.153968 -0.399051 +-0.142672 -0.071131 -0.399051 +-0.152883 0.045572 -0.399051 +-0.085689 0.141535 -0.399051 +0.027469 0.171856 -0.399051 +0.067922 0.117042 -0.283457 +0.129659 0.055305 -0.283457 +0.137269 -0.031673 -0.283457 +0.08719 -0.103193 -0.283457 +0.002855 -0.12579 -0.283457 +-0.076274 -0.088891 -0.283457 +-0.113173 -0.009762 -0.283457 +-0.090575 0.074573 -0.283457 +-0.019055 0.124652 -0.283457 +0.062737 0.051441 -0.252261 +0.082625 0.008793 -0.252261 +0.070445 -0.036661 -0.252261 +0.031898 -0.063652 -0.252261 +-0.01498 -0.05955 -0.252261 +-0.048254 -0.026276 -0.252261 +-0.052356 0.020602 -0.252261 +-0.025365 0.059149 -0.252261 +0.020089 0.071329 -0.252261 +0.169215 0.073081 -0.361155 +0.086154 0.156141 -0.361155 +0.179452 -0.043938 -0.361155 +0.112077 -0.14016 -0.361155 +-0.001385 -0.170562 -0.361155 +-0.107845 -0.120919 -0.361155 +-0.157488 -0.014459 -0.361155 +-0.127086 0.099003 -0.361155 +-0.030864 0.166379 -0.361155 +0.032127 0.04028 -0.204431 +0.052001 0.020406 -0.204431 +0.054451 -0.007593 -0.204431 +0.03833 -0.030616 -0.204431 +0.011182 -0.037891 -0.204431 +-0.014291 -0.026012 -0.204431 +-0.026169 -0.00054 -0.204431 +-0.018895 0.026609 -0.204431 +0.004128 0.04273 -0.204431 +0.043566 0.032271 -0.164848 +0.055445 0.006798 -0.164848 +0.04817 -0.020351 -0.164848 +0.025147 -0.036472 -0.164848 +-0.002852 -0.034022 -0.164848 +-0.022726 -0.014148 -0.164848 +-0.025176 0.013851 -0.164848 +-0.009055 0.036874 -0.164848 +0.018094 0.044149 -0.164848 +0.024359 0.023622 -0.156601 +0.035149 0.012833 -0.156601 +0.036478 -0.002367 -0.156601 +0.027727 -0.014866 -0.156601 +0.012989 -0.018815 -0.156601 +-0.00084 -0.012367 -0.156601 +-0.007288 0.001462 -0.156601 +-0.003339 0.0162 -0.156601 +0.009159 0.024952 -0.156601 +0.035287 0.012537 0.394915 +0.036616 -0.002663 0.394915 +0.027865 -0.015162 0.394915 +0.013127 -0.019111 0.394915 +-0.000702 -0.012663 0.394915 +-0.00715 0.001166 0.394915 +-0.003201 0.015904 0.394915 +0.009297 0.024656 0.394915 +0.024497 0.023326 0.394915 +0.030817 0.004436 0.40646 +0.026304 0.014113 0.40646 +0.028053 -0.005878 0.40646 +0.019307 -0.012002 0.40646 +0.008671 -0.011071 0.40646 +0.001121 -0.003521 0.40646 +0.00019 0.007115 0.40646 +0.006314 0.015861 0.40646 +0.016628 0.018625 0.40646 +0.015503 0.003312 0.413334 +0.118153 0.106857 -0.415236 +0.161191 0.014561 -0.415236 +0.134834 -0.083807 -0.415236 +0.051413 -0.142218 -0.415236 +-0.050037 -0.133343 -0.415236 +-0.122047 -0.061333 -0.415236 +-0.130922 0.040117 -0.415236 +-0.072511 0.123538 -0.415236 +0.025857 0.149895 -0.415236 +0.015134 0.003838 -0.226195 +0.168142 0.015071 -0.321012 +0.123055 0.111759 -0.321012 +0.14053 -0.087978 -0.321012 +0.05314 -0.149169 -0.321012 +-0.053138 -0.139871 -0.321012 +-0.128575 -0.064434 -0.321012 +-0.137873 0.041844 -0.321012 +-0.076682 0.129234 -0.321012 +0.026367 0.156846 -0.321012 numsurf 216 SURF 0x10 -mat 0 +mat 1 refs 3 82 0.586678445339 0.588872015476 90 0.570062577724 0.572256326675 81 0.59362000227 0.573985755444 SURF 0x10 -mat 0 +mat 1 refs 3 81 0.59362000227 0.573985755444 90 0.570062577724 0.572256326675 83 0.589368760586 0.558120012283 SURF 0x10 -mat 0 +mat 1 refs 3 84 0.575913965702 0.548698723316 83 0.589368760586 0.558120012283 90 0.570062577724 0.572256326675 SURF 0x10 -mat 0 +mat 1 refs 3 85 0.5595510602 0.550130188465 84 0.575913965702 0.548698723316 90 0.570062577724 0.572256326675 SURF 0x10 -mat 0 +mat 1 refs 3 85 0.5595510602 0.550130188465 90 0.570062577724 0.572256326675 86 0.547936558723 0.561744689941 SURF 0x10 -mat 0 +mat 1 refs 3 86 0.547936558723 0.561744689941 90 0.570062577724 0.572256326675 87 0.546504974365 0.578107655048 SURF 0x10 -mat 0 +mat 1 refs 3 88 0.555926203728 0.591562449932 87 0.546504974365 0.578107655048 90 0.570062577724 0.572256326675 SURF 0x10 -mat 0 +mat 1 refs 3 89 0.571791827679 0.595813691616 88 0.555926203728 0.591562449932 90 0.570062577724 0.572256326675 SURF 0x10 -mat 0 +mat 1 refs 3 82 0.586678445339 0.588872015476 89 0.571791827679 0.595813691616 90 0.570062577724 0.572256326675 SURF 0x10 -mat 0 +mat 1 refs 3 92 0.923004686832 0.718677341938 100 0.766575098038 0.758234620094 91 0.858660697937 0.626759171486 SURF 0x10 -mat 0 +mat 1 refs 3 93 0.913211166859 0.830450415611 100 0.766575098038 0.758234620094 92 0.923004686832 0.718677341938 SURF 0x10 -mat 0 +mat 1 refs 3 93 0.913211166859 0.830450415611 94 0.83386272192 0.909778296947 100 0.766575098038 0.758234620094 SURF 0x10 -mat 0 +mat 1 refs 3 94 0.83386272192 0.909778296947 95 0.722087204456 0.919542789459 100 0.766575098038 0.758234620094 SURF 0x10 -mat 0 +mat 1 refs 3 96 0.630185604095 0.855174958706 100 0.766575098038 0.758234620094 95 0.722087204456 0.919542789459 SURF 0x10 -mat 0 +mat 1 refs 3 97 0.601159930229 0.746793210506 100 0.766575098038 0.758234620094 96 0.630185604095 0.855174958706 SURF 0x10 -mat 0 +mat 1 refs 3 97 0.601159930229 0.746793210506 98 0.648591220379 0.645110487938 100 0.766575098038 0.758234620094 SURF 0x10 -mat 0 +mat 1 refs 3 98 0.648591220379 0.645110487938 99 0.750286281109 0.597705245018 100 0.766575098038 0.758234620094 SURF 0x10 -mat 0 +mat 1 refs 3 99 0.750286281109 0.597705245018 91 0.858660697937 0.626759171486 100 0.766575098038 0.758234620094 SURF 0x10 -mat 0 +mat 1 refs 3 44 0.940538048744 0.125143662095 109 0.892236053944 0.196690112352 37 0.843072533607 0.125143662095 SURF 0x10 -mat 0 +mat 1 refs 3 109 0.892236053944 0.196690112352 102 0.795738935471 0.196690112352 37 0.843072533607 0.125143662095 SURF 0x10 -mat 0 +mat 1 refs 3 43 0.142810821533 0.125143662095 108 0.0928281247616 0.196690112352 44 0.0438373982906 0.125143662095 SURF 0x10 -mat 0 +mat 1 refs 3 108 0.989528894424 0.196690112352 109 0.892236053944 0.196690112352 44 0.940538048744 0.125143662095 SURF 0x10 -mat 0 +mat 1 refs 3 42 0.243676930666 0.125143662095 107 0.192001223564 0.196690112352 43 0.142810821533 0.125143662095 SURF 0x10 -mat 0 +mat 1 refs 3 107 0.192001223564 0.196690112352 108 0.0928281247616 0.196690112352 43 0.142810821533 0.125143662095 SURF 0x10 -mat 0 +mat 1 refs 3 42 0.243676930666 0.125143662095 106 0.293383985758 0.196690112352 107 0.192001223564 0.196690112352 SURF 0x10 -mat 0 +mat 1 refs 3 42 0.243676930666 0.125143662095 41 0.34591332078 0.125143662095 106 0.293383985758 0.196690112352 SURF 0x10 -mat 0 +mat 1 refs 3 41 0.34591332078 0.125143662095 105 0.396212100983 0.196690112352 106 0.293383985758 0.196690112352 SURF 0x10 -mat 0 +mat 1 refs 3 41 0.34591332078 0.125143662095 40 0.448238581419 0.125143662095 105 0.396212100983 0.196690112352 SURF 0x10 -mat 0 +mat 1 refs 3 104 0.498885005713 0.196690112352 21 0.551641106606 0.263623297215 22 0.449532985687 0.263623297215 SURF 0x10 -mat 0 +mat 1 refs 3 104 0.498885005713 0.196690112352 22 0.449532985687 0.263623297215 105 0.396212100983 0.196690112352 SURF 0x10 -mat 0 +mat 1 refs 3 103 0.599896609783 0.196690112352 20 0.650729477406 0.263623297215 21 0.551641106606 0.263623297215 SURF 0x10 -mat 0 +mat 1 refs 3 103 0.599896609783 0.196690112352 21 0.551641106606 0.263623297215 104 0.498885005713 0.196690112352 SURF 0x10 -mat 0 +mat 1 refs 3 103 0.599896609783 0.196690112352 101 0.69868183136 0.196690112352 20 0.650729477406 0.263623297215 SURF 0x10 -mat 0 +mat 1 refs 3 20 0.650729477406 0.263623297215 101 0.69868183136 0.196690112352 19 0.747265934944 0.263623297215 SURF 0x10 -mat 0 +mat 1 refs 3 101 0.69868183136 0.196690112352 102 0.795738935471 0.196690112352 19 0.747265934944 0.263623297215 SURF 0x10 -mat 0 +mat 1 refs 3 19 0.747265934944 0.263623297215 102 0.795738935471 0.196690112352 18 0.842688798904 0.263623297215 SURF 0x10 -mat 0 +mat 1 refs 3 8 0.672254323959 0.563070118427 0 0.822413086891 0.549952507019 99 0.750286281109 0.597705245018 SURF 0x10 -mat 0 +mat 1 refs 3 0 0.822413086891 0.549952507019 91 0.858660697937 0.626759171486 99 0.750286281109 0.597705245018 SURF 0x10 -mat 0 +mat 1 refs 3 7 0.565658092499 0.669638931751 8 0.672254323959 0.563070118427 98 0.648591220379 0.645110487938 SURF 0x10 -mat 0 +mat 1 refs 3 8 0.672254323959 0.563070118427 99 0.750286281109 0.597705245018 98 0.648591220379 0.645110487938 SURF 0x10 -mat 0 +mat 1 refs 3 6 0.552501559258 0.819794178009 7 0.565658092499 0.669638931751 97 0.601159930229 0.746793210506 SURF 0x10 -mat 0 +mat 1 refs 3 7 0.565658092499 0.669638931751 98 0.648591220379 0.645110487938 97 0.601159930229 0.746793210506 SURF 0x10 -mat 0 +mat 1 refs 3 6 0.552501559258 0.819794178009 96 0.630185604095 0.855174958706 5 0.638941049576 0.943276524544 SURF 0x10 -mat 0 +mat 1 refs 3 6 0.552501559258 0.819794178009 97 0.601159930229 0.746793210506 96 0.630185604095 0.855174958706 SURF 0x10 -mat 0 +mat 1 refs 3 5 0.638941049576 0.943276524544 95 0.722087204456 0.919542789459 4 0.784530460835 0.982307255268 SURF 0x10 -mat 0 +mat 1 refs 3 5 0.638941049576 0.943276524544 96 0.630185604095 0.855174958706 95 0.722087204456 0.919542789459 SURF 0x10 -mat 0 +mat 1 refs 3 76 0.545132756233 0.547681748867 86 0.547936558723 0.561744689941 77 0.535212814808 0.568955242634 SURF 0x10 -mat 0 +mat 1 refs 3 76 0.545132756233 0.547681748867 85 0.5595510602 0.550130188465 86 0.547936558723 0.561744689941 SURF 0x10 -mat 0 +mat 1 refs 3 76 0.545132756233 0.547681748867 75 0.566406130791 0.537761926651 85 0.5595510602 0.550130188465 SURF 0x10 -mat 0 +mat 1 refs 3 75 0.566406130791 0.537761926651 84 0.575913965702 0.548698723316 85 0.5595510602 0.550130188465 SURF 0x10 -mat 0 +mat 1 refs 3 75 0.566406130791 0.537761926651 74 0.589078903198 0.543836891651 84 0.575913965702 0.548698723316 SURF 0x10 -mat 0 +mat 1 refs 3 74 0.589078903198 0.543836891651 83 0.589368760586 0.558120012283 84 0.575913965702 0.548698723316 SURF 0x10 -mat 0 +mat 1 refs 3 73 0.602542221546 0.563064575195 83 0.589368760586 0.558120012283 74 0.589078903198 0.543836891651 SURF 0x10 -mat 0 +mat 1 refs 3 73 0.602542221546 0.563064575195 81 0.59362000227 0.573985755444 83 0.589368760586 0.558120012283 SURF 0x10 -mat 0 +mat 1 refs 3 72 0.600496351719 0.586447894573 81 0.59362000227 0.573985755444 73 0.602542221546 0.563064575195 SURF 0x10 -mat 0 +mat 1 refs 3 72 0.600496351719 0.586447894573 82 0.586678445339 0.588872015476 81 0.59362000227 0.573985755444 SURF 0x10 -mat 0 +mat 1 refs 3 63 0.455269902945 0.541961729527 71 0.507833719254 0.541961729527 80 0.454418390989 0.992191791534 SURF 0x10 -mat 0 +mat 1 refs 3 63 0.455269902945 0.541961729527 80 0.454418390989 0.992191791534 72 0.401657760143 0.992191791534 SURF 0x10 -mat 0 +mat 1 refs 3 71 0.0241678636521 0.541961729527 70 0.0773149356246 0.541961729527 79 0.0239540394396 0.992191791534 SURF 0x10 -mat 0 +mat 1 refs 3 71 0.507833719254 0.541961729527 79 0.507619976997 0.992191791534 80 0.454418390989 0.992191791534 SURF 0x10 -mat 0 +mat 1 refs 3 70 0.0773149356246 0.541961729527 69 0.131343767047 0.541961729527 78 0.0778597071767 0.992191910744 SURF 0x10 -mat 0 +mat 1 refs 3 70 0.0773149356246 0.541961729527 78 0.0778597071767 0.992191910744 79 0.0239540394396 0.992191791534 SURF 0x10 -mat 0 +mat 1 refs 3 68 0.186152592301 0.541961729527 78 0.0778597071767 0.992191910744 69 0.131343767047 0.541961729527 SURF 0x10 -mat 0 +mat 1 refs 3 68 0.186152592301 0.541961729527 77 0.132414937019 0.992191910744 78 0.0778597071767 0.992191910744 SURF 0x10 -mat 0 +mat 1 refs 3 67 0.241231113672 0.541961729527 77 0.132414937019 0.992191910744 68 0.186152592301 0.541961729527 SURF 0x10 -mat 0 +mat 1 refs 3 67 0.241231113672 0.541961729527 76 0.187234967947 0.992191791534 77 0.132414937019 0.992191910744 SURF 0x10 -mat 0 +mat 1 refs 3 67 0.241231113672 0.541961729527 66 0.29591563344 0.541961729527 75 0.241790145636 0.992191791534 SURF 0x10 -mat 0 +mat 1 refs 3 67 0.241231113672 0.541961729527 75 0.241790145636 0.992191791534 76 0.187234967947 0.992191791534 SURF 0x10 -mat 0 +mat 1 refs 3 66 0.29591563344 0.541961729527 65 0.349764257669 0.541961729527 74 0.295695692301 0.992191791534 SURF 0x10 -mat 0 +mat 1 refs 3 66 0.29591563344 0.541961729527 74 0.295695692301 0.992191791534 75 0.241790145636 0.992191791534 SURF 0x10 -mat 0 +mat 1 refs 3 64 0.402762681246 0.541961729527 74 0.295695692301 0.992191791534 65 0.349764257669 0.541961729527 SURF 0x10 -mat 0 +mat 1 refs 3 64 0.402762681246 0.541961729527 73 0.348897069693 0.992191791534 74 0.295695692301 0.992191791534 SURF 0x10 -mat 0 +mat 1 refs 3 63 0.455269902945 0.541961729527 73 0.348897069693 0.992191791534 64 0.402762681246 0.541961729527 SURF 0x10 -mat 0 +mat 1 refs 3 63 0.455269902945 0.541961729527 72 0.401657760143 0.992191791534 73 0.348897069693 0.992191791534 SURF 0x10 -mat 0 +mat 1 refs 3 58 0.400844305754 0.475020825863 68 0.33327883482 0.518356442451 59 0.280200541019 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 58 0.400844305754 0.475020825863 67 0.482325255871 0.518356323242 68 0.33327883482 0.518356442451 SURF 0x10 -mat 0 +mat 1 refs 3 58 0.400844305754 0.475020825863 57 0.51787340641 0.475020825863 67 0.482325255871 0.518356323242 SURF 0x10 -mat 0 +mat 1 refs 3 57 0.51787340641 0.475020825863 66 0.597425758839 0.518356323242 67 0.482325255871 0.518356323242 SURF 0x10 -mat 0 +mat 1 refs 3 57 0.51787340641 0.475020825863 56 0.621254146099 0.475020825863 66 0.597425758839 0.518356323242 SURF 0x10 -mat 0 +mat 1 refs 3 56 0.621254146099 0.475020825863 65 0.686171591282 0.518356323242 66 0.597425758839 0.518356323242 SURF 0x10 -mat 0 +mat 1 refs 3 55 0.713057518005 0.475020825863 65 0.686171591282 0.518356323242 56 0.621254146099 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 55 0.713057518005 0.475020825863 64 0.763588190079 0.518356323242 65 0.686171591282 0.518356323242 SURF 0x10 -mat 0 +mat 1 refs 3 54 0.798746347427 0.475020825863 64 0.763588190079 0.518356323242 55 0.713057518005 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 54 0.798746347427 0.475020825863 63 0.83732843399 0.518356323242 64 0.763588190079 0.518356323242 SURF 0x10 -mat 0 +mat 1 refs 3 45 0.839951574802 0.404471039772 53 0.925640463829 0.404471039772 62 0.883177638054 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 45 0.839951574802 0.404471039772 62 0.883177638054 0.475020825863 54 0.798746347427 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 53 0.0289398729801 0.404471039772 52 0.120743215084 0.404471039772 61 0.074219584465 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 53 0.925640463829 0.404471039772 61 0.970920264721 0.475020825863 62 0.883177638054 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 52 0.120743215084 0.404471039772 51 0.224123954773 0.404471039772 60 0.170490592718 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 52 0.120743215084 0.404471039772 60 0.170490592718 0.475020825863 61 0.074219584465 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 49 0.461796879768 0.404471039772 48 0.571506798267 0.404471039772 57 0.51787340641 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 49 0.461796879768 0.404471039772 57 0.51787340641 0.475020825863 58 0.400844305754 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 48 0.571506798267 0.404471039772 47 0.667777836323 0.404471039772 56 0.621254146099 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 48 0.571506798267 0.404471039772 56 0.621254146099 0.475020825863 57 0.51787340641 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 31 0.398122191429 0.31922352314 50 0.341152966022 0.404471039772 32 0.28785777092 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 31 0.398122191429 0.31922352314 49 0.461796879768 0.404471039772 50 0.341152966022 0.404471039772 SURF 0x10 -mat 0 +mat 1 refs 3 31 0.398122191429 0.31922352314 30 0.507054507732 0.31922352314 49 0.461796879768 0.404471039772 SURF 0x10 -mat 0 +mat 1 refs 3 30 0.507054507732 0.31922352314 48 0.571506798267 0.404471039772 49 0.461796879768 0.404471039772 SURF 0x10 -mat 0 +mat 1 refs 3 30 0.507054507732 0.31922352314 29 0.609660744667 0.31922352314 48 0.571506798267 0.404471039772 SURF 0x10 -mat 0 +mat 1 refs 3 29 0.609660744667 0.31922352314 47 0.667777836323 0.404471039772 48 0.571506798267 0.404471039772 SURF 0x10 -mat 0 +mat 1 refs 3 28 0.705550909042 0.31922352314 47 0.667777836323 0.404471039772 29 0.609660744667 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 28 0.705550909042 0.31922352314 46 0.755520582199 0.404471039772 47 0.667777836323 0.404471039772 SURF 0x10 -mat 0 +mat 1 refs 3 27 0.797203183174 0.31922352314 46 0.755520582199 0.404471039772 28 0.705550909042 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 27 0.797203183174 0.31922352314 45 0.839951574802 0.404471039772 46 0.755520582199 0.404471039772 SURF 0x10 -mat 0 +mat 1 refs 3 17 0.892564296722 0.057601634413 44 0.940538048744 0.125143662095 37 0.843072533607 0.125143662095 SURF 0x10 -mat 0 +mat 1 refs 3 17 0.892564296722 0.057601634413 37 0.843072533607 0.125143662095 9 0.795628547668 0.057601545006 SURF 0x10 -mat 0 +mat 1 refs 3 16 0.0934601128101 0.057601545006 43 0.142810821533 0.125143662095 44 0.0438373982906 0.125143662095 SURF 0x10 -mat 0 +mat 1 refs 3 16 0.990160703659 0.057601545006 44 0.940538048744 0.125143662095 17 0.892564296722 0.057601634413 SURF 0x10 -mat 0 +mat 1 refs 3 15 0.192659974098 0.057601545006 42 0.243676930666 0.125143662095 43 0.142810821533 0.125143662095 SURF 0x10 -mat 0 +mat 1 refs 3 15 0.192659974098 0.057601545006 43 0.142810821533 0.125143662095 16 0.0934601128101 0.057601545006 SURF 0x10 -mat 0 +mat 1 refs 3 15 0.192659974098 0.057601545006 14 0.293748736382 0.057601545006 42 0.243676930666 0.125143662095 SURF 0x10 -mat 0 +mat 1 refs 3 42 0.243676930666 0.125143662095 14 0.293748736382 0.057601545006 41 0.34591332078 0.125143662095 SURF 0x10 -mat 0 +mat 1 refs 3 18 0.842688798904 0.263623297215 26 0.93876850605 0.263623297215 35 0.887854576111 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 18 0.842688798904 0.263623297215 35 0.887854576111 0.31922352314 27 0.797203183174 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 26 0.0420677661896 0.263623297215 25 0.140385001898 0.263623297215 34 0.0841081440449 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 26 0.93876850605 0.263623297215 34 0.980808854103 0.31922352314 35 0.887854576111 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 25 0.140385001898 0.263623297215 24 0.241732299328 0.263623297215 33 0.182451963425 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 25 0.140385001898 0.263623297215 33 0.182451963425 0.31922352314 34 0.0841081440449 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 23 0.345470190048 0.263623297215 32 0.28785777092 0.31922352314 24 0.241732299328 0.263623297215 SURF 0x10 -mat 0 +mat 1 refs 3 24 0.241732299328 0.263623297215 32 0.28785777092 0.31922352314 33 0.182451963425 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 0 0.843233287334 0.0105683244765 8 0.941273868084 0.0105685032904 17 0.892564296722 0.057601634413 SURF 0x10 -mat 0 +mat 1 refs 3 0 0.843233287334 0.0105683244765 17 0.892564296722 0.057601634413 9 0.795628547668 0.057601545006 SURF 0x10 -mat 0 +mat 1 refs 3 8 0.0445730984211 0.0105685032904 7 0.143804639578 0.0105685032904 16 0.0934601128101 0.057601545006 SURF 0x10 -mat 0 +mat 1 refs 3 8 0.941273868084 0.0105685032904 16 0.990160703659 0.057601545006 17 0.892564296722 0.057601634413 SURF 0x10 -mat 0 +mat 1 refs 3 7 0.143804639578 0.0105685032904 6 0.244460910559 0.0105685032904 15 0.192659974098 0.057601545006 SURF 0x10 -mat 0 +mat 1 refs 3 7 0.143804639578 0.0105685032904 15 0.192659974098 0.057601545006 16 0.0934601128101 0.057601545006 SURF 0x10 -mat 0 +mat 1 refs 3 5 0.346090316772 0.0105685032904 14 0.293748736382 0.057601545006 6 0.244460910559 0.0105685032904 SURF 0x10 -mat 0 +mat 1 refs 3 6 0.244460910559 0.0105685032904 14 0.293748736382 0.057601545006 15 0.192659974098 0.057601545006 SURF 0x10 -mat 0 +mat 1 refs 3 104 0.498885005713 0.196690112352 105 0.396212100983 0.196690112352 40 0.448238581419 0.125143662095 SURF 0x10 -mat 0 +mat 1 refs 3 104 0.498885005713 0.196690112352 40 0.448238581419 0.125143662095 39 0.549319326878 0.125143542886 SURF 0x10 -mat 0 +mat 1 refs 3 107 0.192001223564 0.196690112352 24 0.241732299328 0.263623297215 25 0.140385001898 0.263623297215 SURF 0x10 -mat 0 +mat 1 refs 3 107 0.192001223564 0.196690112352 25 0.140385001898 0.263623297215 108 0.0928281247616 0.196690112352 SURF 0x10 -mat 0 +mat 1 refs 3 108 0.0928281247616 0.196690112352 25 0.140385001898 0.263623297215 26 0.0420677661896 0.263623297215 SURF 0x10 -mat 0 +mat 1 refs 3 108 0.989528894424 0.196690112352 26 0.93876850605 0.263623297215 109 0.892236053944 0.196690112352 SURF 0x10 -mat 0 +mat 1 refs 3 109 0.892236053944 0.196690112352 26 0.93876850605 0.263623297215 18 0.842688798904 0.263623297215 SURF 0x10 -mat 0 +mat 1 refs 3 109 0.892236053944 0.196690112352 18 0.842688798904 0.263623297215 102 0.795738935471 0.196690112352 SURF 0x10 -mat 0 +mat 1 refs 3 36 0.746124744415 0.125143542886 102 0.795738935471 0.196690112352 101 0.69868183136 0.196690112352 SURF 0x10 -mat 0 +mat 1 refs 3 36 0.746124744415 0.125143542886 37 0.843072533607 0.125143662095 102 0.795738935471 0.196690112352 SURF 0x10 -mat 0 +mat 1 refs 3 23 0.345470190048 0.263623297215 105 0.396212100983 0.196690112352 22 0.449532985687 0.263623297215 SURF 0x10 -mat 0 +mat 1 refs 3 23 0.345470190048 0.263623297215 106 0.293383985758 0.196690112352 105 0.396212100983 0.196690112352 SURF 0x10 -mat 0 +mat 1 refs 3 24 0.241732299328 0.263623297215 106 0.293383985758 0.196690112352 23 0.345470190048 0.263623297215 SURF 0x10 -mat 0 +mat 1 refs 3 24 0.241732299328 0.263623297215 107 0.192001223564 0.196690112352 106 0.293383985758 0.196690112352 SURF 0x10 -mat 0 +mat 1 refs 3 19 0.747265934944 0.263623297215 27 0.797203183174 0.31922352314 28 0.705550909042 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 19 0.747265934944 0.263623297215 18 0.842688798904 0.263623297215 27 0.797203183174 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 20 0.650729477406 0.263623297215 28 0.705550909042 0.31922352314 29 0.609660744667 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 20 0.650729477406 0.263623297215 19 0.747265934944 0.263623297215 28 0.705550909042 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 21 0.551641106606 0.263623297215 20 0.650729477406 0.263623297215 29 0.609660744667 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 21 0.551641106606 0.263623297215 29 0.609660744667 0.31922352314 30 0.507054507732 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 22 0.449532985687 0.263623297215 21 0.551641106606 0.263623297215 30 0.507054507732 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 22 0.449532985687 0.263623297215 30 0.507054507732 0.31922352314 31 0.398122191429 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 23 0.345470190048 0.263623297215 31 0.398122191429 0.31922352314 32 0.28785777092 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 23 0.345470190048 0.263623297215 22 0.449532985687 0.263623297215 31 0.398122191429 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 32 0.28785777092 0.31922352314 51 0.224123954773 0.404471039772 33 0.182451963425 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 32 0.28785777092 0.31922352314 50 0.341152966022 0.404471039772 51 0.224123954773 0.404471039772 SURF 0x10 -mat 0 +mat 1 refs 3 33 0.182451963425 0.31922352314 51 0.224123954773 0.404471039772 52 0.120743215084 0.404471039772 SURF 0x10 -mat 0 +mat 1 refs 3 33 0.182451963425 0.31922352314 52 0.120743215084 0.404471039772 34 0.0841081440449 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 34 0.0841081440449 0.31922352314 52 0.120743215084 0.404471039772 53 0.0289398729801 0.404471039772 SURF 0x10 -mat 0 +mat 1 refs 3 34 0.980808854103 0.31922352314 53 0.925640463829 0.404471039772 35 0.887854576111 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 35 0.887854576111 0.31922352314 53 0.925640463829 0.404471039772 45 0.839951574802 0.404471039772 SURF 0x10 -mat 0 +mat 1 refs 3 35 0.887854576111 0.31922352314 45 0.839951574802 0.404471039772 27 0.797203183174 0.31922352314 SURF 0x10 -mat 0 +mat 1 refs 3 46 0.755520582199 0.404471039772 54 0.798746347427 0.475020825863 55 0.713057518005 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 46 0.755520582199 0.404471039772 45 0.839951574802 0.404471039772 54 0.798746347427 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 51 0.224123954773 0.404471039772 59 0.280200541019 0.475020825863 60 0.170490592718 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 51 0.224123954773 0.404471039772 50 0.341152966022 0.404471039772 59 0.280200541019 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 50 0.341152966022 0.404471039772 58 0.400844305754 0.475020825863 59 0.280200541019 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 50 0.341152966022 0.404471039772 49 0.461796879768 0.404471039772 58 0.400844305754 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 62 0.883177638054 0.475020825863 71 0.912326216698 0.518356442451 63 0.83732843399 0.518356323242 SURF 0x10 -mat 0 +mat 1 refs 3 62 0.883177638054 0.475020825863 63 0.83732843399 0.518356323242 54 0.798746347427 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 61 0.074219584465 0.475020825863 70 0.0977303385735 0.518356442451 71 0.0156255066395 0.518356442451 SURF 0x10 -mat 0 +mat 1 refs 3 61 0.970920264721 0.475020825863 71 0.912326216698 0.518356442451 62 0.883177638054 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 60 0.170490592718 0.475020825863 69 0.198026329279 0.518356442451 70 0.0977303385735 0.518356442451 SURF 0x10 -mat 0 +mat 1 refs 3 60 0.170490592718 0.475020825863 70 0.0977303385735 0.518356442451 61 0.074219584465 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 59 0.280200541019 0.475020825863 69 0.198026329279 0.518356442451 60 0.170490592718 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 59 0.280200541019 0.475020825863 68 0.33327883482 0.518356442451 69 0.198026329279 0.518356442451 SURF 0x10 -mat 0 +mat 1 refs 3 41 0.34591332078 0.125143662095 13 0.396087437868 0.057601545006 40 0.448238581419 0.125143662095 SURF 0x10 -mat 0 +mat 1 refs 3 41 0.34591332078 0.125143662095 14 0.293748736382 0.057601545006 13 0.396087437868 0.057601545006 SURF 0x10 -mat 0 +mat 1 refs 3 36 0.746124744415 0.125143542886 9 0.795628547668 0.057601545006 37 0.843072533607 0.125143662095 SURF 0x10 -mat 0 +mat 1 refs 3 36 0.746124744415 0.125143542886 10 0.698173999786 0.057601545006 9 0.795628547668 0.057601545006 SURF 0x10 -mat 0 +mat 1 refs 3 38 0.648519933224 0.125143542886 101 0.69868183136 0.196690112352 103 0.599896609783 0.196690112352 SURF 0x10 -mat 0 +mat 1 refs 3 38 0.648519933224 0.125143542886 36 0.746124744415 0.125143542886 101 0.69868183136 0.196690112352 SURF 0x10 -mat 0 +mat 1 refs 3 103 0.599896609783 0.196690112352 104 0.498885005713 0.196690112352 39 0.549319326878 0.125143542886 SURF 0x10 -mat 0 +mat 1 refs 3 103 0.599896609783 0.196690112352 39 0.549319326878 0.125143542886 38 0.648519933224 0.125143542886 SURF 0x10 -mat 0 +mat 1 refs 3 12 0.498335391283 0.057601545006 39 0.549319326878 0.125143542886 40 0.448238581419 0.125143662095 SURF 0x10 -mat 0 +mat 1 refs 3 12 0.498335391283 0.057601545006 40 0.448238581419 0.125143662095 13 0.396087437868 0.057601545006 SURF 0x10 -mat 0 +mat 1 refs 3 11 0.599205493927 0.057601545006 38 0.648519933224 0.125143542886 39 0.549319326878 0.125143542886 SURF 0x10 -mat 0 +mat 1 refs 3 11 0.599205493927 0.057601545006 39 0.549319326878 0.125143542886 12 0.498335391283 0.057601545006 SURF 0x10 -mat 0 +mat 1 refs 3 38 0.648519933224 0.125143542886 10 0.698173999786 0.057601545006 36 0.746124744415 0.125143542886 SURF 0x10 -mat 0 +mat 1 refs 3 38 0.648519933224 0.125143542886 11 0.599205493927 0.057601545006 10 0.698173999786 0.057601545006 SURF 0x10 -mat 0 +mat 1 refs 3 0 0.843233287334 0.0105683244765 9 0.795628547668 0.057601545006 1 0.745648086071 0.0105683244765 SURF 0x10 -mat 0 +mat 1 refs 3 1 0.745648086071 0.0105683244765 9 0.795628547668 0.057601545006 10 0.698173999786 0.057601545006 SURF 0x10 -mat 0 +mat 1 refs 3 1 0.745648086071 0.0105683244765 10 0.698173999786 0.057601545006 2 0.647607564926 0.0105683244765 SURF 0x10 -mat 0 +mat 1 refs 3 2 0.647607564926 0.0105683244765 10 0.698173999786 0.057601545006 11 0.599205493927 0.057601545006 SURF 0x10 -mat 0 +mat 1 refs 3 3 0.548376023769 0.0105683244765 11 0.599205493927 0.057601545006 12 0.498335391283 0.057601545006 SURF 0x10 -mat 0 +mat 1 refs 3 2 0.647607564926 0.0105683244765 11 0.599205493927 0.057601545006 3 0.548376023769 0.0105683244765 SURF 0x10 -mat 0 +mat 1 refs 3 3 0.548376023769 0.0105683244765 12 0.498335391283 0.057601545006 4 0.447719722986 0.0105685032904 SURF 0x10 -mat 0 +mat 1 refs 3 4 0.447719722986 0.0105685032904 12 0.498335391283 0.057601545006 13 0.396087437868 0.057601545006 SURF 0x10 -mat 0 +mat 1 refs 3 5 0.346090316772 0.0105685032904 13 0.396087437868 0.057601545006 14 0.293748736382 0.057601545006 SURF 0x10 -mat 0 +mat 1 refs 3 4 0.447719722986 0.0105685032904 13 0.396087437868 0.057601545006 5 0.346090316772 0.0105685032904 SURF 0x10 -mat 0 +mat 1 refs 3 4 0.784530460835 0.982307255268 95 0.722087204456 0.919542789459 94 0.83386272192 0.909778296947 SURF 0x10 -mat 0 +mat 1 refs 3 4 0.784530460835 0.982307255268 94 0.83386272192 0.909778296947 3 0.921146988869 0.918623566628 SURF 0x10 -mat 0 +mat 1 refs 3 3 0.921146988869 0.918623566628 94 0.83386272192 0.909778296947 93 0.913211166859 0.830450415611 SURF 0x10 -mat 0 +mat 1 refs 3 3 0.921146988869 0.918623566628 93 0.913211166859 0.830450415611 2 0.984866082668 0.782023608685 SURF 0x10 -mat 0 +mat 1 refs 3 2 0.984866082668 0.782023608685 92 0.923004686832 0.718677341938 1 0.945873141289 0.636423945427 SURF 0x10 -mat 0 +mat 1 refs 3 2 0.984866082668 0.782023608685 93 0.913211166859 0.830450415611 92 0.923004686832 0.718677341938 SURF 0x10 -mat 0 +mat 1 refs 3 91 0.858660697937 0.626759171486 0 0.822413086891 0.549952507019 1 0.945873141289 0.636423945427 SURF 0x10 -mat 0 +mat 1 refs 3 1 0.945873141289 0.636423945427 92 0.923004686832 0.718677341938 91 0.858660697937 0.626759171486 SURF 0x10 -mat 0 +mat 1 refs 3 80 0.583898901939 0.603045344353 89 0.571791827679 0.595813691616 82 0.586678445339 0.588872015476 SURF 0x10 -mat 0 +mat 1 refs 3 80 0.583898901939 0.603045344353 82 0.586678445339 0.588872015476 72 0.600496351719 0.586447894573 SURF 0x10 -mat 0 +mat 1 refs 3 79 0.560515642166 0.605091094971 88 0.555926203728 0.591562449932 89 0.571791827679 0.595813691616 SURF 0x10 -mat 0 +mat 1 refs 3 79 0.560515642166 0.605091094971 89 0.571791827679 0.595813691616 80 0.583898901939 0.603045344353 SURF 0x10 -mat 0 +mat 1 refs 3 78 0.541287958622 0.591627895832 87 0.546504974365 0.578107655048 88 0.555926203728 0.591562449932 SURF 0x10 -mat 0 +mat 1 refs 3 78 0.541287958622 0.591627895832 88 0.555926203728 0.591562449932 79 0.560515642166 0.605091094971 SURF 0x10 -mat 0 +mat 1 refs 3 77 0.535212814808 0.568955242634 87 0.546504974365 0.578107655048 78 0.541287958622 0.591627895832 SURF 0x10 -mat 0 +mat 1 refs 3 77 0.535212814808 0.568955242634 86 0.547936558723 0.561744689941 87 0.546504974365 0.578107655048 SURF 0x10 -mat 0 +mat 1 refs 3 47 0.667777836323 0.404471039772 55 0.713057518005 0.475020825863 56 0.621254146099 0.475020825863 SURF 0x10 -mat 0 +mat 1 refs 3 47 0.667777836323 0.404471039772 46 0.755520582199 0.404471039772 diff --git a/src/flyable.cpp b/src/flyable.cpp index 3e39eff6f..2ae8e5116 100644 --- a/src/flyable.cpp +++ b/src/flyable.cpp @@ -65,7 +65,7 @@ Flyable::Flyable(Kart *kart, PowerupType type, float mass) : Moveable() // ---------------------------------------------------------------------------- void Flyable::createPhysics(float y_offset, const btVector3 velocity, btCollisionShape *shape, const bool gravity, - const bool rotates, const btTransform* customDirection) + const bool rotates, const bool turn_around, const btTransform* customDirection) { // Get Kart heading direction btTransform trans = ( customDirection == NULL ? m_owner->getKartHeading() : *customDirection ); @@ -76,6 +76,16 @@ void Flyable::createPhysics(float y_offset, const btVector3 velocity, btVector3 offset=btVector3(0,y_offset,m_average_height); offset_transform.setOrigin(offset); + // turn around + if(turn_around) + { + btTransform turn_around_trans; + //turn_around_trans.setOrigin(trans.getOrigin()); + turn_around_trans.setIdentity(); + turn_around_trans.setRotation(btQuaternion(btVector3(0, 0, 1), M_PI)); + trans *= turn_around_trans; + } + trans *= offset_transform; m_shape = shape; diff --git a/src/flyable.hpp b/src/flyable.hpp index b1515303f..922c59a08 100644 --- a/src/flyable.hpp +++ b/src/flyable.hpp @@ -74,7 +74,8 @@ protected: void createPhysics(float y_offset, const btVector3 velocity, btCollisionShape *shape, const bool gravity=false, - const bool rotates=false, const btTransform* customDirection=NULL); + const bool rotates=false, const bool turn_around=false, + const btTransform* customDirection=NULL); public: Flyable (Kart* kart, PowerupType type, float mass=1.0f); diff --git a/src/items/plunger.cpp b/src/items/plunger.cpp index 206e15b99..78d0f7c02 100644 --- a/src/items/plunger.cpp +++ b/src/items/plunger.cpp @@ -19,19 +19,27 @@ #include "items/plunger.hpp" #include "constants.hpp" +#include "coord.hpp" +#include "karts/player_kart.hpp" +#include "camera.hpp" // ----------------------------------------------------------------------------- Plunger::Plunger(Kart *kart) : Flyable(kart, POWERUP_PLUNGER) { - float y_offset=kart->getKartLength()+2.0f*m_extend.getY(); - createPhysics(y_offset, btVector3(0.0f, m_speed, 0.0f), - new btCylinderShape(0.5f*m_extend)); -} // Missile + float y_offset = 0.5f*kart->getKartLength()+2.0f*m_extend.getY(); + + // if the kart is looking backwards, release from the back + PlayerKart* pk = dynamic_cast(kart); + const bool reverse_mode = (pk != NULL && pk->getCamera()->getMode() == Camera::CM_REVERSE); + + createPhysics(y_offset, btVector3(0.0f, m_speed*2, 0.0f), + new btCylinderShape(0.5f*m_extend), false, false, reverse_mode ); +} // Plunger // ----------------------------------------------------------------------------- -void Plunger::init(const lisp::Lisp* lisp, ssgEntity *missile) +void Plunger::init(const lisp::Lisp* lisp, ssgEntity *plunger_model) { - Flyable::init(lisp, missile, POWERUP_PLUNGER); + Flyable::init(lisp, plunger_model, POWERUP_PLUNGER); } // init // ----------------------------------------------------------------------------- diff --git a/src/items/powerup_manager.cpp b/src/items/powerup_manager.cpp index b47b9c287..ac41b4855 100644 --- a/src/items/powerup_manager.cpp +++ b/src/items/powerup_manager.cpp @@ -140,8 +140,6 @@ void PowerupManager::LoadNode(const lisp::Lisp* lisp, int collectType ) Bowling::init (lisp, m_all_models[collectType]); break; case POWERUP_PLUNGER: Plunger::init (lisp, m_all_models[collectType]); break; - //case POWERUP_BUBBLEGUM: - // BubbleGum::init(lisp, m_all_models[collectType]); break; case POWERUP_CAKE: Cake::init (lisp, m_all_models[collectType]); break; default:;