コード例 #1
0
ファイル: PxArticulation.cs プロジェクト: kewur/PhysX-Sharp
 public virtual void computeImpulseResponse(PxArticulationLink link, PxVec3 linearResponse, PxVec3 angularResponse, PxArticulationDriveCache driveCache, PxVec3 linearImpulse, PxVec3 angularImpulse)
 {
     physxPINVOKE.PxArticulation_computeImpulseResponse(swigCPtr, PxArticulationLink.getCPtr(link), PxVec3.getCPtr(linearResponse), PxVec3.getCPtr(angularResponse), PxArticulationDriveCache.getCPtr(driveCache), PxVec3.getCPtr(linearImpulse), PxVec3.getCPtr(angularImpulse));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
ファイル: PxArticulation.cs プロジェクト: kewur/PhysX-Sharp
        public virtual PxArticulationLink createLink(PxArticulationLink parent, PxTransform pose)
        {
            global::System.IntPtr cPtr = physxPINVOKE.PxArticulation_createLink(swigCPtr, PxArticulationLink.getCPtr(parent), PxTransform.getCPtr(pose));
            PxArticulationLink    ret  = (cPtr == global::System.IntPtr.Zero) ? null : new PxArticulationLink(cPtr, false);

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #3
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PxArticulationLink obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }