using System.Collections;
using System.Collections.Generic;
using UnityEngine;

// this script sets the parent's center of mass

public class MassCenterScript : MonoBehaviour {

	// Use this for initialization
	void Start () {
        //print("vittuuuu");
        transform.parent.GetComponent<Rigidbody2D>().centerOfMass = transform.localPosition;
	}
}
