new simplified timer. and little other ops

This commit is contained in:
Youmu Liu
2025-11-18 20:39:03 +08:00
parent 81a60d1cfe
commit ece12f2ea7
28 changed files with 2254 additions and 853 deletions
+3 -3
View File
@@ -196,10 +196,10 @@ namespace StgSharp
internal static Vec3 DefaultRotation(TimeSpanProvider provider, out float rotation)
{
rotation = provider.SpanLengthLowPrecession;
float angle = provider.CurrentSecond * 2;
rotation = 1.0f / 60;
float angle = (float)provider.CurrentSecond * 2;
return (new Vec3(Scalar.Cos(angle), Scalar.Sin(angle),
0)) * provider.SpanLengthLowPrecession;
0)) * rotation;
}
protected override void CustomizeDeinit() { }