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

Method writePacketData

Engine/source/T3D/rigidShape.cpp:1422–1435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1420//----------------------------------------------------------------------------
1421
1422void 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
1437void RigidShape::readPacketData(GameConnection *connection, BitStream *stream)
1438{

Callers

nothing calls this directly

Calls 4

mathWriteFunction · 0.85
setCompressionPointMethod · 0.80
writeFlagMethod · 0.45
getCountMethod · 0.45

Tested by

no test coverage detected