| 5426 | //---------------------------------------------------------------------------- |
| 5427 | |
| 5428 | void Player::setTransform(const MatrixF& mat) |
| 5429 | { |
| 5430 | // This method should never be called on the client. |
| 5431 | |
| 5432 | // This currently converts all rotation in the mat into |
| 5433 | // rotations around the z axis. |
| 5434 | Point3F pos,vec; |
| 5435 | mat.getColumn(1,&vec); |
| 5436 | mat.getColumn(3,&pos); |
| 5437 | Point3F rot(0.0f, 0.0f, -mAtan2(-vec.x,vec.y)); |
| 5438 | setPosition(pos,rot); |
| 5439 | setMaskBits(MoveMask | NoWarpMask); |
| 5440 | } |
| 5441 | |
| 5442 | void Player::getEyeTransform(MatrixF* mat) |
| 5443 | { |
no test coverage detected