Пример #1
0
        private PartAttachment AddPartAttachment(Vector3 position, TransformFollower.Transformable target, bool normalized = false)
        {
            TransformFollower follower = TransformFollower.createFollower(partModel, position, target);
            object            data     = shape.AddAttachment(follower, normalized);

            return(new PartAttachment(follower, data));
        }
Пример #2
0
        private PartAttachment AddPartAttachment(Vector3 position, TransformFollower.Transformable target, bool normalized = false)
        {
            if ((object)target == null)
            {
                Debug.Log("AddPartAttachment: null target!");
            }
            TransformFollower follower = TransformFollower.CreateFollower(partModel, position, target);

            if ((object)follower == null)
            {
                Debug.Log("AddPartAttachment: null follower!");
            }
            object data = shape.AddAttachment(follower, normalized);

            return(new PartAttachment(follower, data));
        }