| 1435 | } |
| 1436 | |
| 1437 | void RigidShape::readPacketData(GameConnection *connection, BitStream *stream) |
| 1438 | { |
| 1439 | Parent::readPacketData(connection, stream); |
| 1440 | |
| 1441 | mathRead(*stream, &mRigid.linPosition); |
| 1442 | mathRead(*stream, &mRigid.angPosition); |
| 1443 | mathRead(*stream, &mRigid.linMomentum); |
| 1444 | mathRead(*stream, &mRigid.angMomentum); |
| 1445 | mRigid.atRest = stream->readFlag(); |
| 1446 | if (stream->readFlag()) |
| 1447 | mContacts.clear(); |
| 1448 | mRigid.updateInertialTensor(); |
| 1449 | mRigid.updateVelocity(); |
| 1450 | |
| 1451 | mDisableMove = stream->readFlag(); |
| 1452 | stream->setCompressionPoint(mRigid.linPosition); |
| 1453 | } |
| 1454 | |
| 1455 | |
| 1456 | //---------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected