public static bool IsZero(CGfxBoneTransform transform) { if (transform.Position == Vector3.Zero && transform.Scale == Vector3.Zero && !transform.Rotation.IsValid) { return(true); } return(false); }
public static CGfxBoneTransform Transform(CGfxBoneTransform cld, CGfxBoneTransform parent) { CGfxBoneTransform temp = CGfxBoneTransform.Identify; temp.Rotation = cld.Rotation * parent.Rotation; temp.Position = parent.Position + parent.Rotation * cld.Position; temp.Scale = Vector3.Modulate(parent.Scale, cld.Scale); return(temp); }