/// <summary> /// Updates the players transform by moving the player above the center of the Stackable object /// </summary> /// <param name="stackable"></param> private void StackOnBottom(Stackable stackable) { Vector3 playerBottomCenter = this.GetBottomCenter(); Vector3 stackableTopCenter = stackable.GetTopCenter(); Vector3 targetTranslation = stackableTopCenter - playerBottomCenter; this.transform.Translate(targetTranslation, Space.World); }