コード例 #1
0
ファイル: Axis.cs プロジェクト: AnomalousMedical/Engine
 public void process(Ray3 worldRay, Vector3 boxLocation)
 {
     if (enabled)
     {
         axisBox.setCenter(boxLocation + centerOffset);
         selected = axisBox.testIntersection(ref worldRay);
     }
 }
コード例 #2
0
        public void process(Ray3 worldRay, Vector3 location)
        {
            Vector3 dontCare;
            int     quantity;

            axisBox.setCenter(location);
            //Make sure the ray is within the radius of the circle and the hit box.
            selected = Distance.SqrDistance(ref location, ref worldRay) <= radius * radius && axisBox.findIntersection(ref worldRay, out quantity, out intersection, out dontCare);
        }
コード例 #3
0
 public bool checkBoundingBoxCollision(ref Ray3 spaceRay)
 {
     boundingBox.setCenter(movable.ToolTranslation + boundingBox.getExtents());
     return(boundingBox.testIntersection(spaceRay));
 }
コード例 #4
0
ファイル: RotateTool.cs プロジェクト: AnomalousMedical/Engine
 internal bool checkBoundingBoxCollision(ref Ray3 spaceRay)
 {
     boundingBox.setCenter(movable.ToolTranslation);
     return(boundingBox.testIntersection(spaceRay));
 }