Example #1
0
        public void BuildConstraintCall(object sender)
        {
            Vector3D        inputVector = (Vector3D)sender;
            VectorEventArgs eventArgs   = new VectorEventArgs()
            {
                Vector = new Vector3((float)inputVector.X, (float)inputVector.Y, (float)inputVector.Z)
            };

            BuildConstraintHandler?.Invoke(this, eventArgs);
        }
        public void BuildConstraintCall(object sender)
        {
            ConstraintEventArgs eventArgs = new ConstraintEventArgs()
            {
                Weight      = Weight,
                Smoothness  = Smoothness,
                FrameOffset = Math.Abs(FrameOffset)
            };

            BuildConstraintHandler?.Invoke(this, eventArgs);
        }