File tree Expand file tree Collapse file tree 3 files changed +27
-5
lines changed
Assets/GalacticConquest/Scripts/Systems Expand file tree Collapse file tree 3 files changed +27
-5
lines changed Original file line number Diff line number Diff line change 1+ # 0.0.20
2+ ## New Features
3+
4+ ## Upgrade guide
5+
6+ ## Changes
7+ * ComponentGroup.Types was made internal, since it will likely be refactored
8+ * Renamed DynamicBuffer.GetBasePointer() to DynamicBuffer.GetUnsafePtr() for consistency with NativeArray API.
9+
10+ ## Fixes
11+ * Component types no longer show up multiple times in archetypes and queries in the EntityDebugger
12+ * Attempting to rename an entity in the EntityDebugger no longer causes an exception (naming is not yet supported)
13+ * Component filter editor now shows types in consistent alphabetical order when filtering
14+ * The Show button in the GameObjectEntity inspector works again
15+ * Fixed [ ReadOnly] DynamicBuffer incorrectly throwing exceptions when getting the NativeArray inside of a job.
16+ * Fixed DynamicBuffer not throwing the right exceptions when writing to buffers while NativeArrays are being used in jobs
17+
118# 0.0.19
219## New Features
320
Original file line number Diff line number Diff line change @@ -76,12 +76,17 @@ public void Execute(int index)
7676 }
7777 }
7878
79- var shipCurrentDirection = math . normalize ( ( float3 ) newPos - position . Value ) ;
80- rotation . Value = quaternion . LookRotation ( shipCurrentDirection , math . up ( ) ) ;
79+ var dist = ( float3 ) newPos - position . Value ;
80+ var lenSq = math . lengthsq ( dist ) ;
81+ if ( lenSq > math . FLT_MIN_NORMAL )
82+ {
83+ var shipCurrentDirection = dist / math . sqrt ( lenSq ) ;
84+ rotation . Value = quaternion . LookRotation ( shipCurrentDirection , math . up ( ) ) ;
85+ Rotations [ index ] = rotation ;
86+ }
8187
8288 position . Value = newPos ;
8389 Positions [ index ] = position ;
84- Rotations [ index ] = rotation ;
8590 }
8691 }
8792
Original file line number Diff line number Diff line change 55 "com.unity.modules.physics2d" : " 1.0.0" ,
66 "com.unity.modules.assetbundle" : " 1.0.0" ,
77 "com.unity.modules.unitywebrequestassetbundle" : " 1.0.0" ,
8- "com.unity.test-framework.performance" : " 0.1.45 -preview" ,
8+ "com.unity.test-framework.performance" : " 0.1.47 -preview" ,
99 "com.unity.modules.unityanalytics" : " 1.0.0" ,
1010 "com.unity.modules.umbra" : " 1.0.0" ,
1111 "com.unity.modules.vehicles" : " 1.0.0" ,
2525 "com.unity.modules.unitywebrequestaudio" : " 1.0.0" ,
2626 "com.unity.modules.jsonserialize" : " 1.0.0" ,
2727 "com.unity.modules.terrainphysics" : " 1.0.0" ,
28- "com.unity.entities" : " 0.0.12-preview.20 " ,
28+ "com.unity.entities" : " 0.0.12-preview.21 " ,
2929 "com.unity.modules.animation" : " 1.0.0" ,
3030 "com.unity.package-manager-ui" : " 2.0.0-preview.3" ,
3131 "com.unity.modules.cloth" : " 1.0.0" ,
You can’t perform that action at this time.
0 commit comments