public new static FbxConstraintPosition Create(FbxObject pContainer, string pName)
        {
            global::System.IntPtr cPtr = FbxWrapperNativePINVOKE.FbxConstraintPosition_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName);
            FbxConstraintPosition ret  = (cPtr == global::System.IntPtr.Zero) ? null : new FbxConstraintPosition(cPtr, false);

            return(ret);
        }
Esempio n. 2
0
        public new static FbxConstraintPosition Create(FbxManager pManager, string pName)
        {
            global::System.IntPtr cPtr = fbx_wrapperPINVOKE.FbxConstraintPosition_Create__SWIG_0(FbxManager.getCPtr(pManager), pName);
            FbxConstraintPosition ret  = (cPtr == global::System.IntPtr.Zero) ? null : new FbxConstraintPosition(cPtr, false);

            return(ret);
        }
Esempio n. 3
0
 public bool Equals(FbxConstraintPosition other)
 {
     if (object.ReferenceEquals(other, null))
     {
         return(false);
     }
     return(this.swigCPtr.Handle.Equals(other.swigCPtr.Handle));
 }
Esempio n. 4
0
        public new static FbxConstraintPosition Create(FbxObject pContainer, string pName)
        {
            global::System.IntPtr cPtr = NativeMethods.FbxConstraintPosition_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName);
            FbxConstraintPosition ret  = (cPtr == global::System.IntPtr.Zero) ? null : new FbxConstraintPosition(cPtr, false);

            if (NativeMethods.SWIGPendingException.Pending)
            {
                throw NativeMethods.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 5
0
        protected FbxConstraint CreatePositionConstraint(FbxScene scene, FbxNode sourceNode, FbxNode constrainedNode)
        {
            FbxConstraintPosition constraint = FbxConstraintPosition.Create(scene, ConstraintName);

            constraint.SetConstrainedObject(constrainedNode);
            constraint.AddConstraintSource(sourceNode);

            constraint.AffectX.Set(true);
            constraint.AffectY.Set(true);
            constraint.AffectZ.Set(true);

            constraint.Translation.Set(new FbxDouble3(1, 2, 3));

            return(constraint);
        }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxConstraintPosition obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }