示例#1
0
        /// <summary>
        /// Add to physics simulation and update bounds
        /// </summary>
        void Start() // run this and also onEnable cause sometimes on enable isnt called.
        {
            UpdateBounds(center, size);

            if (!inList)
            {
                UCPhysics.AddPhysicsObject(this);
                inList = true;
            }
        }