Skip to content

Commit

Permalink
javadoc update and minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tzaeschke committed Jan 21, 2019
1 parent 911f07c commit a08c3c8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions core/src/main/java/org/ode4j/ode/DRay.java
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -72,8 +72,20 @@ public interface DRay extends DGeom {
*/ */
boolean getFirstContact(); boolean getFirstContact();
void setFirstContact(boolean firstContact); void setFirstContact(boolean firstContact);
/**
* Set/get ray flags that influence ray collision detection.
* These flags are currently only noticed by the trimesh collider, because
* they can make a major differences there.
* @return backface cull setting
*/
boolean getBackfaceCull(); boolean getBackfaceCull();
void setBackfaceCull(boolean backfaceCull); void setBackfaceCull(boolean backfaceCull);
/**
* Set/get ray flags that influence ray collision detection.
* These flags are currently only noticed by the trimesh collider, because
* they can make a major differences there.
* @return closest hit setting
*/
void setClosestHit (boolean closestHit); void setClosestHit (boolean closestHit);
boolean getClosestHit(); boolean getClosestHit();


Expand Down
3 changes: 2 additions & 1 deletion core/src/main/java/org/ode4j/ode/internal/DxRay.java
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -252,8 +252,9 @@ void dGeomRaySetClosestHit (boolean closestHit)
//dUASSERT (g!=null && g.type == dRayClass,"argument not a ray"); //dUASSERT (g!=null && g.type == dRayClass,"argument not a ray");
if (closestHit){ if (closestHit){
setFlagCustom(RAY_CLOSEST_HIT);//_gflags |= RAY_CLOSEST_HIT; setFlagCustom(RAY_CLOSEST_HIT);//_gflags |= RAY_CLOSEST_HIT;
} else {
unsetFlagCustom(RAY_CLOSEST_HIT);//_gflags &= ~RAY_CLOSEST_HIT;
} }
else unsetFlagCustom(RAY_CLOSEST_HIT);//_gflags &= ~RAY_CLOSEST_HIT;
} }




Expand Down

0 comments on commit a08c3c8

Please sign in to comment.