Engine DeMonoGame #2

This commit is contained in:
2024-01-23 12:16:58 +03:00
parent 0486b0343a
commit ba284a199a
17 changed files with 135 additions and 124 deletions

View File

@@ -1,8 +1,7 @@
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Syntriax.Engine.Core;
using Syntriax.Engine.Core.Abstract;
namespace Syntriax.Engine.Physics2D.Abstract;
@@ -13,8 +12,8 @@ public interface ICollider2D : IBehaviour, IAssignableTransform
IRigidBody2D? RigidBody2D { get; }
IList<Vector2> Vertices { get; }
IList<Vector2D> Vertices { get; }
bool CheckCollision(Vector2 point);
bool CheckCollision(Vector2D point);
void Recalculate();
}

View File

@@ -1,5 +1,4 @@
using Microsoft.Xna.Framework;
using Syntriax.Engine.Core;
using Syntriax.Engine.Core.Abstract;
namespace Syntriax.Engine.Physics2D.Abstract;
@@ -8,7 +7,7 @@ public interface IRigidBody2D : IBehaviour, IAssignableTransform
{
IPhysicsMaterial2D Material { get; set; }
Vector2 Velocity { get; set; }
Vector2D Velocity { get; set; }
float AngularVelocity { get; set; }
float Mass { get; set; }