| 5550 | //---------------------------------------------------------------------------- |
| 5551 | |
| 5552 | void Player::setTransform(const MatrixF& mat) |
| 5553 | { |
| 5554 | // This method should never be called on the client. |
| 5555 | |
| 5556 | // This currently converts all rotation in the mat into |
| 5557 | // rotations around the z axis. |
| 5558 | Point3F pos,vec; |
| 5559 | mat.getColumn(1,&vec); |
| 5560 | mat.getColumn(3,&pos); |
| 5561 | Point3F rot(0.0f, 0.0f, -mAtan2(-vec.x,vec.y)); |
| 5562 | setPosition(pos,rot); |
| 5563 | setMaskBits(MoveMask | NoWarpMask); |
| 5564 | } |
| 5565 | |
| 5566 | void Player::getEyeTransform(MatrixF* mat) |
| 5567 | { |
no test coverage detected