Esempio n. 1
0
 public MeshVertex(CoordinateF location,Bone bone, float textureU, float textureV)
 {
     Location = location;
     BoneWeightings = new List<BoneWeighting> {new BoneWeighting(bone, 1)};
     TextureU = textureU;
     TextureV = textureV;
 }
Esempio n. 2
0
File: Bone.cs Progetto: silky/sledge
 public Bone(int boneIndex, int parentIndex, Bone parent, string name,
             CoordinateF defaultPosition, CoordinateF defaultAngles,
             CoordinateF defaultPositionScale, CoordinateF defaultAnglesScale)
 {
     BoneIndex = boneIndex;
     ParentIndex = parentIndex;
     Parent = parent;
     Name = name;
     DefaultPosition = defaultPosition;
     DefaultAngles = defaultAngles;
     DefaultPositionScale = defaultPositionScale;
     DefaultAnglesScale = defaultAnglesScale;
     Transform = QuaternionF.EulerAngles(DefaultAngles).GetMatrix().Translate(defaultPosition);
     if (parent != null) Transform *= parent.Transform;
 }
Esempio n. 3
0
 public BoneAnimationFrame(Bone bone, CoordinateF position, QuaternionF angles)
 {
     Bone = bone;
     Position = position;
     Angles = angles;
 }