new simplified timer. and little other ops
This commit is contained in:
@@ -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() { }
|
||||
|
||||
Reference in New Issue
Block a user