| 886 | /////////////////////////////////////////////////////////////////////////////// |
| 887 | |
| 888 | static ABP_Index* resizeMapping(PxU32 oldNbBoxes, PxU32 newNbBoxes, ABP_Index* mapping) |
| 889 | { |
| 890 | ABP_Index* newMapping = reinterpret_cast<ABP_Index*>(MBP_ALLOC(sizeof(ABP_Index)*newNbBoxes)); |
| 891 | if(oldNbBoxes) |
| 892 | PxMemCopy(newMapping, mapping, oldNbBoxes*sizeof(ABP_Index)); |
| 893 | MBP_FREE(mapping); |
| 894 | return newMapping; |
| 895 | } |
| 896 | |
| 897 | struct ABP_Object; |
| 898 |