Game Development Community

UnPackUpdate

by Morrock · in Torque Game Engine · 05/10/2008 (2:29 pm) · 2 replies

Hi, I'm having a problem with the unPackUpdate function in shapeBase.cc. I'm trying to pack/unpack a Point3F but keep receiving the error:
error C2664: 'bool Stream::read(ColorI *)' : cannot convert parameter 1 from 'Point3F *' to 'ColorI *'

How would I pack/unpack a Point3F. Would I have to do each axis seperately? What do I do with the mask then? Any help is greatly appreciated.

#1
05/10/2008 (2:53 pm)
Check out Player::writePacketData().
#2
05/10/2008 (4:11 pm)
Using that as a reference worked. Thanks.