| 1029 | static MatrixF IMat(1); |
| 1030 | |
| 1031 | bool Item::buildPolyList(PolyListContext context, AbstractPolyList* polyList, const Box3F&, const SphereF&) |
| 1032 | { |
| 1033 | if ( context == PLC_Decal ) |
| 1034 | return false; |
| 1035 | |
| 1036 | // Collision with the item is always against the item's object |
| 1037 | // space bounding box axis aligned in world space. |
| 1038 | Point3F pos; |
| 1039 | mObjToWorld.getColumn(3,&pos); |
| 1040 | IMat.setColumn(3,pos); |
| 1041 | polyList->setTransform(&IMat, mObjScale); |
| 1042 | polyList->setObject(this); |
| 1043 | polyList->addBox(mObjBox); |
| 1044 | return true; |
| 1045 | } |
| 1046 | |
| 1047 | |
| 1048 | //---------------------------------------------------------------------------- |
no test coverage detected