Beispiel #1
0
 /// <summary>This method is called for each shape hit by the raycast. </summary>
 /// <param name="hits">The data corresponding to the ray intersection. See NxRaycastHit. </param>
 public virtual bool onHit(NxRaycastHit hits)
 {
     if (doSetFunctionPointers)
     {
         throw new System.NotSupportedException("Cannot call abstract base member");
     }
     return(NxUserRaycastReport_onHit_INVOKE(ClassPointer, doSetFunctionPointers, (hits != null ? hits.ClassPointer : NullRef)));
 }
Beispiel #2
0
 private bool onHit_virtual(IntPtr hits)
 {
     return(onHit(NxRaycastHit.GetClass(hits)));
 }
Beispiel #3
0
 private NxQueryReportResult onRaycastQuery_virtual(System.IntPtr userData, uint nbHits, IntPtr hits)
 {
     return(onRaycastQuery(userData, nbHits, NxRaycastHit.GetClass(hits)));
 }
Beispiel #4
0
 /// <summary>Callback function used to return raycast query results. </summary>
 /// <param name="userData">User data pointer passed to the query function. </param>
 /// <param name="nbHits">Number of hit shapes </param>
 /// <param name="hits">Array of hit descriptors (size nbHits) </param>
 public virtual NxQueryReportResult onRaycastQuery(System.IntPtr userData, uint nbHits, NxRaycastHit hits)
 {
     if (doSetFunctionPointers)
     {
         throw new System.NotSupportedException("Cannot call abstract base member");
     }
     return(NxSceneQueryReport_onRaycastQuery_INVOKE(ClassPointer, doSetFunctionPointers, userData, nbHits, (hits != null ? hits.ClassPointer : NullRef)));
 }