//FUNCTIONS //__________________________________________________________________________________________________________________________________________ //reszing collider boxes around objects/sprites so collision box updates with the objects pos public void ResizingCollider(AABB whichCollider, SceneObject whichObject, SpriteObject whichSprite) { whichCollider.Resize(new Vector3(whichObject.globalTransform.m7 - (whichSprite.Width / 2), whichObject.globalTransform.m8 - (whichSprite.Height / 2), 0), new Vector3(whichObject.globalTransform.m7 + (whichSprite.Width / 2), whichObject.globalTransform.m8 + (whichSprite.Height / 2), 0)); }