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

Method writePacketData

Engine/source/T3D/rigidShape.cpp:1517–1530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1515//----------------------------------------------------------------------------
1516
1517void RigidShape::writePacketData(GameConnection *connection, BitStream *stream)
1518{
1519 Parent::writePacketData(connection, stream);
1520
1521 mathWrite(*stream, mRigid.linPosition);
1522 mathWrite(*stream, mRigid.angPosition);
1523 mathWrite(*stream, mRigid.linMomentum);
1524 mathWrite(*stream, mRigid.angMomentum);
1525 stream->writeFlag(mRigid.atRest);
1526 stream->writeFlag(mContacts.getCount() == 0);
1527
1528 stream->writeFlag(mDisableMove);
1529 stream->setCompressionPoint(mRigid.linPosition);
1530}
1531
1532void RigidShape::readPacketData(GameConnection *connection, BitStream *stream)
1533{

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