| 1530 | } |
| 1531 | |
| 1532 | void RigidShape::readPacketData(GameConnection *connection, BitStream *stream) |
| 1533 | { |
| 1534 | Parent::readPacketData(connection, stream); |
| 1535 | |
| 1536 | mathRead(*stream, &mRigid.linPosition); |
| 1537 | mathRead(*stream, &mRigid.angPosition); |
| 1538 | mathRead(*stream, &mRigid.linMomentum); |
| 1539 | mathRead(*stream, &mRigid.angMomentum); |
| 1540 | mRigid.atRest = stream->readFlag(); |
| 1541 | if (stream->readFlag()) |
| 1542 | mContacts.clear(); |
| 1543 | mRigid.updateInertialTensor(); |
| 1544 | mRigid.updateVelocity(); |
| 1545 | |
| 1546 | mDisableMove = stream->readFlag(); |
| 1547 | stream->setCompressionPoint(mRigid.linPosition); |
| 1548 | } |
| 1549 | |
| 1550 | |
| 1551 | //---------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected