Exemple #1
0
        public override byte[] Pack()
        {
            DynamicOutputBuffer buffer = DynamicOutputBuffer.Get(Code);

            PackHeader(buffer);

            buffer.WriteSmallVector3F(Position);
            buffer.WriteSmallVelVector3F(Velocity);

            buffer.WriteSmallAngle(Azimuth);
            buffer.WriteSmallAngVel(AngularVelocity);

            PackFooter(buffer);
            return(buffer.GetMessageBuffer());
        }