Add collision detection with octree
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user