| 1515 | //---------------------------------------------------------------------------- |
| 1516 | |
| 1517 | void RigidShape::writePacketData(GameConnection *connection, BitStream *stream) |
| 1518 | { |
| 1519 | Parent::writePacketData(connection, stream); |
| 1520 | |
| 1521 | mathWrite(*stream, mRigid.linPosition); |
| 1522 | mathWrite(*stream, mRigid.angPosition); |
| 1523 | mathWrite(*stream, mRigid.linMomentum); |
| 1524 | mathWrite(*stream, mRigid.angMomentum); |
| 1525 | stream->writeFlag(mRigid.atRest); |
| 1526 | stream->writeFlag(mContacts.getCount() == 0); |
| 1527 | |
| 1528 | stream->writeFlag(mDisableMove); |
| 1529 | stream->setCompressionPoint(mRigid.linPosition); |
| 1530 | } |
| 1531 | |
| 1532 | void RigidShape::readPacketData(GameConnection *connection, BitStream *stream) |
| 1533 | { |
nothing calls this directly
no test coverage detected