| 6058 | static MatrixF IMat(1); |
| 6059 | |
| 6060 | bool Player::buildPolyList(PolyListContext, AbstractPolyList* polyList, const Box3F&, const SphereF&) |
| 6061 | { |
| 6062 | // Collision with the player is always against the player's object |
| 6063 | // space bounding box axis aligned in world space. |
| 6064 | Point3F pos; |
| 6065 | getTransform().getColumn(3,&pos); |
| 6066 | IMat.setColumn(3,pos); |
| 6067 | polyList->setTransform(&IMat, Point3F(1.0f,1.0f,1.0f)); |
| 6068 | polyList->setObject(this); |
| 6069 | polyList->addBox(mObjBox); |
| 6070 | return true; |
| 6071 | } |
| 6072 | |
| 6073 | |
| 6074 | void Player::buildConvex(const Box3F& box, Convex* convex) |