public void ResolveCollisionWithOtherEntity(IDungeonEntityUpdatable other) { if (other is PlayerEntity) { return; } if (other is DungeonEntity) { myPlayer.player.gravity = 0; myPlayer.player.fallStart = 1; myPlayer.player.fallStart2 = 1; } player.position -= pendingVelocity; }
public void ResolveCollisionWithOtherEntity(IDungeonEntityUpdatable other) { }
public abstract bool CollideWithOther(IDungeonEntityUpdatable other);
public override bool CollideWithOther(IDungeonEntityUpdatable other) { return(other.EntityHitbox.HitboxShapes.IntersectWith(other.EntityHitbox.HitboxShapes)); }