Example #1
0
            public ConvexHullShapePacket.Types.Vertex ExportToPacket()
            {
                ConvexHullShapePacket.Types.Vertex packet = new ConvexHullShapePacket.Types.Vertex();

                ExportToPacket(packet);

                return(packet);
            }
Example #2
0
            public Vertex(ConvexHullShapePacket.Types.Vertex vertex)
            {
                Point.X = vertex.Position.X;
                Point.Y = vertex.Position.Y;
                Point.Z = vertex.Position.Z;
                Point.W = 1.0f;

                Normal.X = vertex.Normal.X;
                Normal.Y = vertex.Normal.Y;
                Normal.Z = vertex.Normal.Z;
                Normal.W = 1.0f;
            }
Example #3
0
            public void ExportToPacket(ConvexHullShapePacket.Types.Vertex packet)
            {
                if (packet != null)
                {
                    packet.Position   = new Vector3Packet();
                    packet.Position.X = Point.X;
                    packet.Position.Y = Point.Y;
                    packet.Position.Z = Point.Z;

                    packet.Normal   = new Vector3Packet();
                    packet.Normal.X = Normal.X;
                    packet.Normal.Y = Normal.Y;
                    packet.Normal.Z = Normal.Z;
                }
            }