| 370 | } |
| 371 | |
| 372 | void 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 | |
| 398 | void CameraComponent::setForwardVector(VectorF newForward, VectorF upVector) |
| 399 | { |
nothing calls this directly
no test coverage detected