-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New patch : DragCubeGeneration (#139)
Faster and more reliable implementation of drag cube generation. Improves overall loading times (both game load and scene/vessel/ship load times), prevent occasional lag spikes (in the editor mostly) and fix some issues causing incorrect drag cubes to be generated.
- Loading branch information
Showing
7 changed files
with
1,508 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using UnityEngine; | ||
|
||
namespace KSPCommunityFixes | ||
{ | ||
static class Extensions | ||
{ | ||
/// <summary> | ||
/// Transforms a direction by this matrix. | ||
/// </summary> | ||
public static Vector3 MultiplyVector(this Matrix4x4 m, float x, float y, float z) | ||
{ | ||
return new Vector3( | ||
m.m00 * x + m.m01 * y + m.m02 * z, | ||
m.m10 * x + m.m11 * y + m.m12 * z, | ||
m.m20 * x + m.m21 * y + m.m22 * z); | ||
} | ||
} | ||
} |
Oops, something went wrong.