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

Method unpackUpdate

Engine/source/T3D/components/camera/cameraComponent.cpp:372–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370}
371
372void CameraComponent::unpackUpdate(NetConnection *con, BitStream *stream)
373{
374 Parent::unpackUpdate(con, stream);
375
376 if (stream->readFlag())
377 {
378 F32 fov;
379 stream->read(&fov);
380 setCameraFov(fov);
381 }
382
383 if(stream->readFlag())
384 {
385 mTargetNodeIdx = stream->readInt(32);
386
387 stream->readCompressedPoint(&mPosOffset);
388
389 EulerF rot;
390 stream->readCompressedPoint(&rot);
391
392 mRotOffset = RotationF(rot);
393
394 mUseParentTransform = stream->readFlag();
395 }
396}
397
398void CameraComponent::setForwardVector(VectorF newForward, VectorF upVector)
399{

Callers

nothing calls this directly

Calls 5

readFlagMethod · 0.80
readIntMethod · 0.80
readCompressedPointMethod · 0.80
RotationFClass · 0.50
readMethod · 0.45

Tested by

no test coverage detected