RayCastPhysics() public static method

public static RayCastPhysics ( Vec3 raySrc, Vec3 rayDir, EditorObject ignore, Vec3 &hitPos, float &hitDist ) : bool
raySrc Vec3
rayDir Vec3
ignore EditorObject
hitPos Vec3
hitDist float
return bool
Exemplo n.º 1
0
        public static bool RayCastPhysicsFromScreenPoint(Vec2 screenPoint, out Vec3 hitPos)
        {
            Vec3 raySrc;
            Vec3 rayDir;

            Editor.GetWorldRayFromScreenPoint(screenPoint, out raySrc, out rayDir);
            float num;

            return(Editor.RayCastPhysics(raySrc, rayDir, EditorObject.Null, out hitPos, out num));
        }
Exemplo n.º 2
0
        public static bool RayCastPhysics(Vec3 raySrc, Vec3 rayDir, EditorObjectSelection ignore, out Vec3 hitPos, out float hitDist)
        {
            Vec3 vec;

            return(Editor.RayCastPhysics(raySrc, rayDir, ignore, out hitPos, out hitDist, out vec));
        }