MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / setBounds

Method setBounds

physx/source/lowlevelaabb/src/BpBroadPhaseMBP.cpp:1138–1153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1136}
1137
1138void 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
1156static PX_FORCE_INLINE Ps::IntBool intersect2D(const MBP_AABB& a, const MBP_AABB& b)

Callers 2

createAggregateMethod · 0.45

Calls 1

isStaticMethod · 0.80

Tested by

no test coverage detected