| 1136 | } |
| 1137 | |
| 1138 | void Region::setBounds(MBP_Index handle, const MBP_AABB& bounds) |
| 1139 | { |
| 1140 | PX_ASSERT(handle<mMaxNbObjects); |
| 1141 | |
| 1142 | const MBPEntry& object = mObjects[handle]; |
| 1143 | if(!object.isStatic()) |
| 1144 | { |
| 1145 | PX_ASSERT(object.mIndex < mNbDynamicBoxes); |
| 1146 | mDynamicBoxes[object.mIndex] = bounds; |
| 1147 | } |
| 1148 | else |
| 1149 | { |
| 1150 | PX_ASSERT(object.mIndex < mNbStaticBoxes); |
| 1151 | mStaticBoxes[object.mIndex] = bounds; |
| 1152 | } |
| 1153 | } |
| 1154 | |
| 1155 | #ifndef MBP_SIMD_OVERLAP |
| 1156 | static PX_FORCE_INLINE Ps::IntBool intersect2D(const MBP_AABB& a, const MBP_AABB& b) |
no test coverage detected