コード例 #1
0
        public CEngineQsTransform(CR2WFile cr2w)
            : base(cr2w)
        {
            x = new CFloat(null)
            {
                Name = "x", Type = "Float"
            };
            y = new CFloat(null)
            {
                Name = "y", Type = "Float"
            };
            z = new CFloat(null)
            {
                Name = "z", Type = "Float"
            };
            pitch = new CFloat(null)
            {
                Name = "rotation x", Type = "Float"
            };
            yaw = new CFloat(null)
            {
                Name = "rotation y", Type = "Float"
            };
            roll = new CFloat(null)
            {
                Name = "rotation z", Type = "Float"
            };
            w = new CFloat(null)
            {
                Name = "rotation w", Type = "Float"
            };
            scale_x = new CFloat(null)
            {
                Name = "scale x", Type = "Float"
            };
            scale_y = new CFloat(null)
            {
                Name = "scale y", Type = "Float"
            };
            scale_z = new CFloat(null)
            {
                Name = "scale z", Type = "Float"
            };

            w.val = 1;
        }
コード例 #2
0
 public CEngineTransform(CR2WFile cr2w)
     : base(cr2w)
 {
     x = new CFloat(null)
     {
         Name = "x", Type = "Float"
     };
     y = new CFloat(null)
     {
         Name = "y", Type = "Float"
     };
     z = new CFloat(null)
     {
         Name = "z", Type = "Float"
     };
     pitch = new CFloat(null)
     {
         Name = "pitch", Type = "Float"
     };
     yaw = new CFloat(null)
     {
         Name = "yaw", Type = "Float"
     };
     roll = new CFloat(null)
     {
         Name = "roll", Type = "Float"
     };
     scale_x = new CFloat(null)
     {
         Name = "scale x", Type = "Float"
     };
     scale_y = new CFloat(null)
     {
         Name = "scale y", Type = "Float"
     };
     scale_z = new CFloat(null)
     {
         Name = "scale z", Type = "Float"
     };
 }