daily update on 20240514 by nitload youmu
This commit is contained in:
@@ -60,6 +60,7 @@ namespace StgSharp.Geometries
|
||||
{
|
||||
movement = motionDelegate;
|
||||
}
|
||||
sourceIsStatic = false;
|
||||
}
|
||||
|
||||
public bool IsIncrement
|
||||
@@ -71,12 +72,15 @@ namespace StgSharp.Geometries
|
||||
public unsafe void RunMotion(ref vec3d coord, ref float rotation)
|
||||
{
|
||||
float rot = 0;
|
||||
|
||||
vec3d vec;
|
||||
if (sourceIsStatic)
|
||||
{
|
||||
|
||||
vec = ((delegate*<TimeSpanProvider, out float, vec3d>)handle)(time, out rot);
|
||||
}
|
||||
else
|
||||
{
|
||||
vec = movement(time, out rot);
|
||||
}
|
||||
vec3d vec = ((delegate*<TimeSpanProvider, out float, vec3d>)handle)(time, out rot);
|
||||
|
||||
if (isIncrementMode)
|
||||
{
|
||||
@@ -89,6 +93,5 @@ namespace StgSharp.Geometries
|
||||
rotation = rot;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}//------------------------------- End of Class -------------------------------
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user