MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / readPacketData

Method readPacketData

Engine/source/T3D/rigidShape.cpp:1437–1453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1435}
1436
1437void 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//----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 6

mathReadFunction · 0.85
readFlagMethod · 0.80
updateInertialTensorMethod · 0.80
setCompressionPointMethod · 0.80
clearMethod · 0.45
updateVelocityMethod · 0.45

Tested by

no test coverage detected