mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 03:56:31 +00:00
19 lines
403 B
C#
19 lines
403 B
C#
using Microsoft.Xna.Framework;
|
|
|
|
namespace Platformer.Collisions
|
|
{
|
|
public enum BodyType
|
|
{
|
|
Static, Dynamic
|
|
}
|
|
|
|
public class Body
|
|
{
|
|
public BodyType BodyType = BodyType.Static;
|
|
public Vector2 Position;
|
|
public Vector2 Velocity;
|
|
public AABB BoundingBox => new AABB(Position - Size / 2f, Position + Size / 2f);
|
|
public Vector2 Size;
|
|
}
|
|
}
|