예제 #1
0
        // This method updates the layer, but does not call the PM
        // USED ONLY BECAUSE OF THE PROJECT STRUCTURE
        public void SetLayerQUIET(int layerNumber)
        {
            ColliderData cd = ColliderData;

            cd.LayerNumber = layerNumber;
            ColliderData   = cd;
        }
예제 #2
0
        public static Rigidbody New(DynamicData dynamicData, ObjectData objectData, ColliderData colliderData)
        {
            Rigidbody rb = s_pooler.GetInstance();

            rb.Init(dynamicData, objectData, colliderData);
            return(rb);
        }
예제 #3
0
        public void UpdateAABB()
        {
            //TODO; this is as ugly as the DynamicData above
            ColliderData cd = ColliderData;

            cd.GlobalAABB = cd.Collider2D.CreateAABB(GameObject.Transform);
            ColliderData  = cd;
        }
예제 #4
0
        public void SetLayer(int layerNumber)
        {
            SuperPhysicsManager.Instance.ChangeLayer(this, ColliderData.LayerNumber, layerNumber);

            ColliderData cd = ColliderData;

            cd.LayerNumber = layerNumber;
            ColliderData   = cd;
        }
예제 #5
0
 public void Init(DynamicData dynamicData, ObjectData objectData, ColliderData colliderData)
 {
     DynamicData  = dynamicData;
     ObjectData   = objectData;
     ColliderData = colliderData;
 }