0 downloads Unlisted

(Picture is unrelated, but required)

When combining meshes of each part into one, vertex positions and normals are transformed from one object space to the other, but the tangents are copied as is.

This is in the PartGroupScript's CombineMeshes method, and a possible fix is the following (note that handedness is preserved):

Vector3 transformedTangent = matrix4x.MultiplyVector(PartGroupScript.combineSource.Tangents[i]).normalized;
PartGroupScript.
combineTarget.Tangents[num2] = new Vector4(
transformedTangent.x,
transformedTangent.y,
transformedTangent.z,
PartGroupScript._combineSource.Tangents[i].w
);

GENERAL INFO

CRAFTS

Name Location Part Count Mass Altitude Velocity
New Droo 9 881kg Ground 0.0 m/s

Upvotes Disabled

This post is unlisted and upvoting is disabled.