Exemplo n.º 1
0
        protected virtual void Attach(NVRAttachPoint point)
        {
            point.Attached(this);

            AttachedItem  = point.Item;
            AttachedPoint = point;
        }
Exemplo n.º 2
0
        protected virtual void Attach(NVRAttachPoint point)
        {
            point.Attached(this);

            AttachedItem = point.Item;
            AttachedPoint = point;
        }
Exemplo n.º 3
0
        protected virtual void Attach(NVRAttachPoint point)
        {
            OnAttach(point);
            point.Attached(this);

            AttachedItem  = point.Item;
            AttachedPoint = point;

            if (SnapToAttachPoint)
            {
                AttachedItem.transform.position = transform.position + (AttachedItem.transform.position - AttachedPoint.transform.position);
            }
            _itemKinematicStatePreAttach = AttachedItem.Rigidbody.isKinematic;
            if (SetKinematicWhenAttached)
            {
                AttachedItem.Rigidbody.isKinematic = true;
            }
        }