BulletCSharp.LocalRayResult.getCPtr C# (CSharp) Méthode

getCPtr() static private méthode

static private getCPtr ( LocalRayResult obj ) : HandleRef
obj LocalRayResult
Résultat System.Runtime.InteropServices.HandleRef
        internal static HandleRef getCPtr(LocalRayResult obj)
        {
            return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
        }

Usage Example

        public virtual float addSingleResult(LocalRayResult rayResult, bool normalInWorldSpace)
        {
            float ret = BulletSoftBodyPINVOKE.RayResultCallback_addSingleResult(swigCPtr, LocalRayResult.getCPtr(rayResult), normalInWorldSpace);

            if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending)
            {
                throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }