Add collision detection with octree

This commit is contained in:
2021-04-11 14:12:55 +02:00
parent 46b1ac233b
commit 1c2fc7b86b
21 changed files with 94 additions and 21 deletions
+3 -3
View File
@@ -5,20 +5,20 @@ using Microsoft.Xna.Framework;
namespace EvilSatellites.Objects
{
public interface IGameObject
public interface IGameObject : EvilSatellites.Quadtree.Positional
{
void Activate();
void Destroy();
Vector3 Position { get; set; }
Vector3 Dimensions { get; set; }
Vector3 Orientation { get; set; }
// Vector3 Movement { get; set; }
bool IsDynamic { get; }
float Theta { get; set; }
Matrix Rotation { get; set; }
void Update(GameTime gameTime);
ObjectType Type { get; set; }
void Move(Vector3 pose);
void OnCollision(IGameObject obj);
}
}