Exemple #1
0
 //---------------------------------------------------------------------
 void _clearState()
 {
     mNextNode = null;
     mPrePos   = mCurrentPos;
 }
Exemple #2
0
 //---------------------------------------------------------------------
 // Unites two bounding boxes.
 public EbBoundingBox unionWith(EbBoundingBox other)
 {
     return(new EbBoundingBox {
         Min = EbVector3.min(this.Min, other.Min), Max = EbVector3.max(this.Max, other.Max)
     });
 }
Exemple #3
0
 //---------------------------------------------------------------------
 public bool contains(EbVector3 point)
 {
     // not outside of box?
     return((point.x < this.Min.x || point.x > this.Max.x || point.y < this.Min.y || point.y > this.Max.y ||
             point.z < this.Min.z || point.z > this.Max.z) == false);
 }
Exemple #4
0
 //-------------------------------------------------------------------------
 public static void DrawRay(Eb.EbVector3 origin, Eb.EbVector3 direct, EbColor color)
 {
     OnDrawLine(origin, origin + direct * 1000f, color);
 }
Exemple #5
0
 //-------------------------------------------------------------------------
 public static void DrawLine(Eb.EbVector3 start, Eb.EbVector3 end, EbColor color)
 {
     OnDrawLine(start, end, color);
 }
Exemple #6
0
 //---------------------------------------------------------------------
 public bool isInGrid(EbVector3 pos_world)
 {
     return(_isInGrid(_world2gird(pos_world)));
 }