| 1420 | //---------------------------------------------------------------------------- |
| 1421 | |
| 1422 | void RigidShape::writePacketData(GameConnection *connection, BitStream *stream) |
| 1423 | { |
| 1424 | Parent::writePacketData(connection, stream); |
| 1425 | |
| 1426 | mathWrite(*stream, mRigid.linPosition); |
| 1427 | mathWrite(*stream, mRigid.angPosition); |
| 1428 | mathWrite(*stream, mRigid.linMomentum); |
| 1429 | mathWrite(*stream, mRigid.angMomentum); |
| 1430 | stream->writeFlag(mRigid.atRest); |
| 1431 | stream->writeFlag(mContacts.getCount() == 0); |
| 1432 | |
| 1433 | stream->writeFlag(mDisableMove); |
| 1434 | stream->setCompressionPoint(mRigid.linPosition); |
| 1435 | } |
| 1436 | |
| 1437 | void RigidShape::readPacketData(GameConnection *connection, BitStream *stream) |
| 1438 | { |
nothing calls this directly
no test coverage detected