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

Method unpackUpdate

Engine/source/T3D/components/physics/physicsBehavior.cpp:127–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void PhysicsComponent::unpackUpdate(NetConnection *con, BitStream *stream)
128{
129 Parent::unpackUpdate(con, stream);
130
131 if(stream->readFlag())
132 mathRead( *stream, &mVelocity );
133
134 if(stream->readFlag())
135 {
136 mStatic = stream->readFlag();
137 mAtRest = stream->readFlag();
138 mAtRestCounter = stream->readInt(8);
139
140 mathRead( *stream, &mGravity );
141
142 mDrag = stream->readFloat(12);
143 //mMass = stream->readFloat(12);
144
145 mGravityMod = stream->readFloat(12);
146 }
147}
148
149//
150void PhysicsComponent::interpolateTick(F32 dt)

Callers

nothing calls this directly

Calls 4

mathReadFunction · 0.85
readFlagMethod · 0.80
readIntMethod · 0.80
readFloatMethod · 0.80

Tested by

no test coverage detected