Commit d91fee3
committed
UPBGE: Fix shape replacement for character.
Previously the shape replacement for character wasn't managed and the previous
shape was deleted without relink to the new shape.
To solve this issue CcdCharacter::ReplaceShape is implemented to replace the
shape, this function is called into ReplaceControllerShape.
As character could not use a non convex shape, some shape replacement may
fail (e.g with triangle mesh) the user notice it with the return value
of obj.replacePhysicsShape which is now a boolean.
Fix issue: #968.1 parent 670425e commit d91fee3
File tree
5 files changed
+32
-5
lines changed- doc/python_api/rst/bge_types
- source/gameengine
- Ketsji
- Physics
- Bullet
- Common
5 files changed
+32
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1064 | 1064 | | |
1065 | 1065 | | |
1066 | 1066 | | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
1067 | 1073 | | |
1068 | 1074 | | |
1069 | 1075 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2129 | 2129 | | |
2130 | 2130 | | |
2131 | 2131 | | |
2132 | | - | |
2133 | | - | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
2134 | 2136 | | |
2135 | 2137 | | |
2136 | 2138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
160 | 166 | | |
161 | 167 | | |
162 | 168 | | |
| |||
675 | 681 | | |
676 | 682 | | |
677 | 683 | | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
678 | 688 | | |
679 | 689 | | |
680 | 690 | | |
| |||
1699 | 1709 | | |
1700 | 1710 | | |
1701 | 1711 | | |
1702 | | - | |
| 1712 | + | |
1703 | 1713 | | |
1704 | 1714 | | |
1705 | 1715 | | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
1706 | 1722 | | |
1707 | 1723 | | |
1708 | 1724 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
470 | 473 | | |
471 | 474 | | |
472 | 475 | | |
| |||
857 | 860 | | |
858 | 861 | | |
859 | 862 | | |
860 | | - | |
| 863 | + | |
861 | 864 | | |
862 | 865 | | |
863 | 866 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
0 commit comments