Bug Fixes

script and actors not having connect transform in on awake and in on start

join auto anchor having wrong anchor because was including scale

fixed selection do to changes to transform accessibility ?
This commit is contained in:
NoriteSC
2023-08-25 14:50:56 +02:00
parent 50c85aec6d
commit 6ab2e540a3
9 changed files with 42 additions and 45 deletions
+2 -4
View File
@@ -898,16 +898,14 @@ namespace FlaxEditor.Viewport
ivp.Invert();
// Create near and far points
var nearPoint = new Vector3(mousePosition, 0.0f);
var farPoint = new Vector3(mousePosition, 1.0f);
viewport.Unproject(ref nearPoint, ref ivp, out nearPoint);
viewport.Unproject(ref farPoint, ref ivp, out farPoint);
// Create direction vector
Vector3 direction = farPoint - nearPoint;
Vector3 direction = farPoint;
direction.Normalize();
return new Ray(nearPoint + viewOrigin, direction);
return new Ray(position, direction);
}
/// <summary>