T3D 1.1Beta 2 Camera packUpdate, w fix
by Thomas · in Torque 3D Professional · 09/22/2010 (9:10 am) · 3 replies
T3D 1.1 Beta 2,
have included the fix mentioned Mounted Spotlights for Multiplayers here and mounted a camera on the same object. But the camera was controllable for mysterious reasons. Hunting down the problem it showed up, that in Camera::packUpdate the retMask was not used and 0 returned, so the eventually returned bits were dropped.
changed Camera::packUpdate to
Hope this helps others to build networked games!
have included the fix mentioned Mounted Spotlights for Multiplayers here and mounted a camera on the same object. But the camera was controllable for mysterious reasons. Hunting down the problem it showed up, that in Camera::packUpdate the retMask was not used and 0 returned, so the eventually returned bits were dropped.
changed Camera::packUpdate to
U32 retMask = Parent::packUpdate(con, mask, bstream); ... // Last line: return retMask; // was 0!
Hope this helps others to build networked games!
About the author
A guy from a farm, milking cows and driving tractors... Otherwise I run in burning houses and save some furniture lives...
Associate Fyodor -bank- Osokin
Dedicated Logic
... // skipped // The rest of the data is part of the control object packet update. // If we're controlled by this client, we don't need to send it. if(bstream->writeFlag(getControllingClient() == con && !(mask & InitialUpdateMask))) return retMask; // changed, was "return 0"; ... // skipped