| 5499 | //---------------------------------------------------------------------------- |
| 5500 | |
| 5501 | void Player::setPosition(const Point3F& pos,const Point3F& rot) |
| 5502 | { |
| 5503 | MatrixF mat; |
| 5504 | if (isMounted()) { |
| 5505 | // Use transform from mounted object |
| 5506 | //MatrixF nmat,zrot; |
| 5507 | mMount.object->getMountTransform( mMount.node, mMount.xfm, &mat ); |
| 5508 | //zrot.set(EulerF(0.0f, 0.0f, rot.z)); |
| 5509 | //mat.mul(nmat,zrot); |
| 5510 | } |
| 5511 | else { |
| 5512 | mat.set(EulerF(0.0f, 0.0f, rot.z)); |
| 5513 | mat.setColumn(3,pos); |
| 5514 | } |
| 5515 | Parent::setTransform(mat); |
| 5516 | mRot = rot; |
| 5517 | |
| 5518 | if ( mPhysicsRep ) |
| 5519 | mPhysicsRep->setTransform( mat ); |
| 5520 | } |
| 5521 | |
| 5522 | |
| 5523 | void Player::setRenderPosition(const Point3F& pos, const Point3F& rot, F32 dt) |
no test coverage detected