daily update on 20230628 by nitload youmu, new debug and graphic lib added
This commit is contained in:
@@ -5,7 +5,7 @@ namespace StgSharp.Geometries
|
||||
/// <summary>
|
||||
/// 计算位移失量,需要手动输入游戏刻以提供时间数据
|
||||
/// </summary>
|
||||
/// <param name="tickCounter"></param>
|
||||
/// <param name="tick"></param>
|
||||
/// <returns>表示位移量的三维矢量</returns>
|
||||
public delegate vec3d GetLocationHandler(uint tick);
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@ namespace StgSharp.Geometries
|
||||
{
|
||||
public class Line : IPlainGeometry
|
||||
{
|
||||
internal Point basePoint = default;
|
||||
internal Point beginPoint = default;
|
||||
internal Point endPoint = default;
|
||||
internal Point basePoint = new Point();
|
||||
internal Point beginPoint = new Point();
|
||||
internal Point endPoint = new Point();
|
||||
internal GetLocationHandler movBegin;
|
||||
internal GetLocationHandler movEnd;
|
||||
|
||||
|
||||
@@ -8,9 +8,9 @@ namespace StgSharp.Geometries
|
||||
public unsafe class Triangle : IPlainGeometry
|
||||
{
|
||||
|
||||
internal Point vertex1;
|
||||
internal Point vertex2;
|
||||
internal Point vertex3;
|
||||
internal Point vertex1 = new Point();
|
||||
internal Point vertex2 = new Point();
|
||||
internal Point vertex3 = new Point();
|
||||
internal GetLocationHandler movVertex01Opearion = new GetLocationHandler(GeometryOperation.DefualtMotion);
|
||||
internal GetLocationHandler movVertex02Opearion = new GetLocationHandler(GeometryOperation.DefualtMotion);
|
||||
internal GetLocationHandler movVertex03Opearion = new GetLocationHandler(GeometryOperation.DefualtMotion);
|
||||
@@ -52,8 +52,8 @@ namespace StgSharp.Geometries
|
||||
)
|
||||
{
|
||||
vertex1.Position = vertex01;
|
||||
vertex1.Position = vertex01;
|
||||
vertex1.Position = vertex01;
|
||||
vertex2.Position = vertex02;
|
||||
vertex3.Position = vertex03;
|
||||
}
|
||||
|
||||
internal sealed override void OnRender(uint tick)
|
||||
|
||||
Reference in New Issue
Block a user