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

Method readPacketData

Engine/source/T3D/rigidShape.cpp:1532–1548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1530}
1531
1532void 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//----------------------------------------------------------------------------

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